public List<Aerodom> GetAllAerodomsForFIR(FIR fir) { var aeroService = new AerodomService(_dataContext); List<Aerodom> aeroList = aeroService.GetAerodoms(); return aeroList.Where(x => x.FIR == fir).OrderBy(x => x.Code).ToList(); }
public List<Aerodom> GetAllAerodoms() { var aeroService = new AerodomService(_dataContext); List<Aerodom> aeroList = aeroService.GetAerodoms(); return aeroList; }
public List<Aerodom> GetAllAerodomsForFIRStr(string sfir) { var aeroService = new AerodomService(_dataContext); List<Aerodom> aeroList = aeroService.GetAerodoms(); var firService = new FIRService(_dataContext); FIR fir = firService.GetFIRs().Where(x => x.Code.Equals(sfir)).FirstOrDefault(); return aeroList.Where(x => x.FIR == fir).OrderBy(x => x.Code).ToList(); }