public IActionResult GetAll()
        {
            IEnumerable <TodoItem> items = _service.GetAll().ToList();

            ViewData["items"] = items;
            return(View());
        }
Beispiel #2
0
 public IEnumerable <TodoItem> GetAll()
 {
     return(_service.GetAll().ToList());
 }