/// <summary>
 /// Returns a list of all Resources
 /// </summary>
 /// <returns>A list of all Resources(Entities)</returns>
 public IEnumerable <Resource> GetAllResources()
 {
     try
     {
         return(repo.GetAll());
     }
     catch (Exception ex)
     {
         LogManager.Error(ex.Message);
         throw;
     }
 }
示例#2
0
        public IEnumerable <Resource> ResourceTest()
        {
            var repo = new ResourceRepo();

            return(repo.GetAll());
        }