Exemplo n.º 1
0
 public ActionResult CreateUser([FromBody] BodyParams body)
 {
     if (sqlHelper.CreateUser(body.Username, body.Password, body.FirstName, body.LastName))
     {
         return(Ok());
     }
     else
     {
         return(BadRequest());
     }
 }