Пример #1
0
        public async Task <IActionResult> Delete(int id, int a)
        {
            var type = await _contentsService.FindContentTypeByIdAsync(id);

            if (type != null)
            {
                return(View(new TypeViewModel()
                {
                    Name = type.Name, Id = type.Id
                }));
            }
            return(NotFound());
        }