public ActionResult Get() { var todo = _todoService.GetAll(); if (todo == null) { return(new JsonResult(BaseResponse.Create(HttpStatusCode.NotFound, todo, "Hiç kayıt bulunamadı"))); } return(new JsonResult(BaseResponse.Create(HttpStatusCode.OK, todo, ""))); }
public List <Todo> GetListTodo() { return(DalTodo.GetAll()); }