WEB API CALL FROM CLIENT MVC C#
Download _________________________________________________________________________________ Step1: create [MVC client project] Step2:// User.cs [Model class] public class User { public string UserName { get; set; } public string Password { get; set; } } Step3://CALLPACKAGE.cs class public class CallPackage { public CallPackage() { Encoding = DefaultEncoding; EndPointUrl = string.Empty; Parameters = string.Empty; Method = HttpVerbs.Get; ContentType = "application/json"; PostData = string.Empty; } public CallPackage(string endpointUrl) : this() { EndPointUrl = endpointUrl; } public CallPackage(string endpoint, HttpVerbs method) : this(endpoint) { Method = method; } public CallPackage(string endpoint, HttpVerbs method