public Location GetLocation(int id) { return(Locations.AsNoTracking().Include(i => i.Address).Where(s => s.Id == id && s.IsDeleted == false).First()); }
public IEnumerable <Location> GetLocations(int id) { return(Locations.AsNoTracking().Include(i => i.Address).Where(s => s.Id == id && s.IsDeleted == false)); }