public ActionResult <User> AddUser([FromBody] User userToAdd) { var addedUser = _loginService.AddUser(userToAdd); if (addedUser != null) { return(Ok(addedUser)); } else { return(StatusCode(500, null)); } }