常用方法
常用方法
常用方法
常用方法
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)); }