public IHttpActionResult GetCustomerInfo([FromBody] Cust_Info customerinfo) { var custinfoRepo = new CustomerInfoRepository(); var getcustomerinfo = custinfoRepo.GetCustomerInfo(customerinfo); if (getcustomerinfo == null) { return(NotFound()); } return(Ok(getcustomerinfo)); }