Пример #1
0
        public ActionResult <ToDoList> DeleteList(int id)
        {
            ToDoList list = listRepository.DeleteList(id);

            if (list == null)
            {
                return(NotFound(new { Message = $"Don't have list with id = {id}" }));
            }

            return(list);
        }