public ActionResult <UserModel> GetUserById(string id) { var user = _services.FindById(string.IsNullOrEmpty(id) ? -1 : Convert.ToInt32(id)); if (user == null) { return(NotFound()); } return(user); }
public ActionResult <UserModel> GetUserById(string id) { var user = _services.FindById(string.IsNullOrEmpty(id) ? -1 : Convert.ToInt32(id)); if (user == null) { return(NotFound()); } return(user); }