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

            return(todos);
        }