Exemplo n.º 1
0
        // 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)));
        }
Exemplo n.º 2
0
        public IActionResult EditUser(int id)
        {
            ViewBag.Ages = _ages;

            return(View(SiteUser.GetUser(id)));
        }
Exemplo n.º 3
0
 // 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)));
 }