public IHttpActionResult CheckCustLogin(Customer customerInfo) { Customer cust = new Customer(); if (customerInfo != null) { cust = anonymousUser.CheckCustLogin(customerInfo); if (cust.USER_NAME == customerInfo.USER_NAME && cust.PASSWORD == customerInfo.PASSWORD) { return(Ok(cust)); } return(Ok("")); } return(BadRequest("The details you entered are incorrect")); }