public IQueryable <Todo> GetAllTodos() { try { return(_todoRepository.GetAll()); } catch (Exception e) { throw e; } }
public IEnumerable <Todo> Get() { var todos = todosRepository.GetAll(); return(todos); }