Example #1
0
        public async Task <IActionResult> Delete(Guid id)
        {
            var result = await _todoService.DelTodoItemAsync(id);

            if (!result)
            {
                return(Redirect("/home/index"));
            }
            return(Redirect("/"));
        }