Beispiel #1
0
        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, "")));
        }
Beispiel #2
0
 public List <Todo> GetListTodo()
 {
     return(DalTodo.GetAll());
 }