Example #1
0
 public ActionResult <IEnumerable <Category> > GetAll()
 {
     try
     {
         return(Ok(categories.GetAll()));
     }
     catch (Exception exception)
     {
         logger.LogError(exception.Message);
         return(StatusCode(500));
     }
 }
        public IEnumerable <Categories> GetCategories()
        {
            var details = _repository.GetAll();

            return(details);
        }
 public IEnumerable <ExpenseCategory> GetAll()
 {
     return(Categories.GetAll());
 }