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