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

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

            return(Ok(list));
        }