public ActionResult <Users> GetbyId(int id) { var u = _user.GetById(id); if (u != null) { return(Ok(u)); } else { return(NotFound()); } }
public User GetById(int id) { var user = UserDb.GetById(id); return(user); }