Exemple #1
0
        public async Task <IActionResult> Delete(Guid id, IFormCollection collection)
        {
            try
            {
                var item = await dataService.DeleteItem(id);

                return(RedirectToAction(nameof(Index)));
            }
            catch
            {
                return(View());
            }
        }