Пример #1
0
        public async Task <IActionResult> Delete(DeleteViewModel model)
        {
            await _toDoItemService.DeleteItemAsync(model.Id);

            return(RedirectToAction(nameof(Index)));
        }