// Fetch a user's informance base on its id public IActionResult Index(int id) { // no db operation, just pretending... ViewBag.Id = id; return(View(SiteUser.GetUser(id))); }
public IActionResult EditUser(int id) { ViewBag.Ages = _ages; return(View(SiteUser.GetUser(id))); }
// Fetch a user's information base on its id public IActionResult Get(int id) { // no db operation, just pretending... return(new ObjectResult(SiteUser.GetUser(id))); }