[HttpPost] [Route("api/Account/Login")] public async Task<GetBaseCustomerResponse> Login([FromBody]LoginRequest request) { GetBaseCustomerResponse _response = new GetBaseCustomerResponse(); -----operations are performed-------- return _response }
public class GetBaseCustomerResponse : GetResponseTemplate<BaseCustomerModel> { }
public class BaseCustomerModel { public int Customerid{get;set;} public string cusname{get;set;} public string cusaddress{get;set;} public string email{get;set;} public string Dateofbirth{get;set;} }
new GetBaseCustomerResponse { Property1 = value1, Property2 = value2 ...};
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)