Exemplo n.º 1
0
        }  // GET: Users/Details/5

        public async Task <ActionResult> Details(long?id)
        {
            if (id == null)
            {
                return(HttpNotFound());
            }

            var user = await repository.FirstOrDefaultAsync(m => m.id == id);

            if (user == null)
            {
                return(HttpNotFound());
            }

            return(View(user));
        }