public IHttpActionResult CustomerLogin([FromBody] string usr_credentials) { int query_result = CustomerSQLHandler.LoginCustomer(JsonConvert.DeserializeObject <Customer>(usr_credentials)); return(CheckQueryResult(query_result, JSONHandler.BuildMsgJSON(1, "Login successful"))); }