public R.SingleResource GetResourceById(long id) { R.SingleResource resource = new R.SingleResource(); return(resource = SingleResourceRepo.Query(u => u.Id == id).FirstOrDefault()); }
public R.SingleResource GetResourceByName(string name) { return(SingleResourceRepo.Query(u => u.Name.ToLower() == name.ToLower()).FirstOrDefault()); }
public IQueryable <R.SingleResource> GetAllResources() { return(SingleResourceRepo.Query()); }