public Object Login([FromBody] LoginModel customer) { ResponseController response = new ResponseController(); if (customer != null) { var user = customerBL.LoginUser(customer); if (user != null) { response.Status = "success"; return(user); } else { response.Status = "User not Valid"; } } else { response.Status = "Error"; } return(response); }