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