예제 #1
0
 public async Task <domain.Location> GetByIdAsync(int id, bool asNoTracking = false)
 {
     return(await EFOperations.GetQueryable <domain.Location>(asNoTracking)
            .FirstOrDefaultAsync(predicate => predicate.Id == id));
 }
예제 #2
0
 public async Task <List <domain.Location> > GetBranchLocations(int branchid)
 {
     return(await EFOperations.GetQueryable <domain.Location>(true)
            .Where(e => e.BranchId == branchid).ToListAsync());
 }