Пример #1
0
 public R.SingleResource GetResourceById(long id)
 {
     R.SingleResource resource = new R.SingleResource();
     return(resource = SingleResourceRepo.Query(u => u.Id == id).FirstOrDefault());
 }
Пример #2
0
 public R.SingleResource GetResourceByName(string name)
 {
     return(SingleResourceRepo.Query(u => u.Name.ToLower() == name.ToLower()).FirstOrDefault());
 }
Пример #3
0
 public IQueryable <R.SingleResource> GetAllResources()
 {
     return(SingleResourceRepo.Query());
 }