public List <Sampling> GetAllSamplings(ProjectSetting pr, LandingSite ls, Gear g, DateTime month) { return(SamplingCollection .Where(t => t.ProjectSetting.ProjectID == pr.ProjectID) .Where(t => t.LandingSite.LandingSiteID == ls.LandingSiteID) .Where(t => t.Gear.GearName == g.GearName) .Where(t => t.DateTimeSampled >= month) .Where(t => t.DateTimeSampled < month.AddMonths(1)).ToList()); }
public List <Sampling> GetAllSamplings(Gear g) { return(SamplingCollection .Where(t => t.Gear.GearID == g.GearID).ToList()); }
public List <Sampling> GetAllSamplings(Fisher f) { return(SamplingCollection .Where(t => t.FisherGPS.Fisher.FisherID == f.FisherID).ToList()); }
public List <Sampling> GetAllSamplings(LandingSite ls) { return(SamplingCollection .Where(t => t.LandingSite.LandingSiteID == ls.LandingSiteID).ToList()); }