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