Exemplo n.º 1
0
        public new async Task <IActionResult> View(string id)
        {
            var model = await repository.GetByNameAsync(id);

            if (model == null)
            {
                return(NotFound());
            }

            return(View(model));
        }