Пример #1
0
        public async Task <IActionResult> DeleteAll()
        {
            var successful = await _todoItemService.DeleteAll();

            if (!successful)
            {
                return(BadRequest("Could not delete items"));
            }
            return(RedirectToAction("Index"));
        }