//public override async Task<ChangeRequestStagingModel<WheelBase>> GetChangeRequestStaging<TId>(TId changeRequestId) //{ // ChangeRequestStagingModel<WheelBase> staging = // await ChangeRequestBusinessService.GetChangeRequestStagingByChangeRequestIdAsync<WheelBase, TId>(changeRequestId); // return staging; //} private async Task <WheelBase> FindAsync <TKey>(TKey id) { var entityId = Convert.ToInt32(id); var entities = await _wheelBaseRepositoryService.GetAsync(m => m.Id == entityId && m.DeleteDate == null, 1); if (entities != null && entities.Any()) { return(entities.First()); } return(null); }
public override async Task <List <VehicleToWheelBase> > GetAsync(Expression <Func <VehicleToWheelBase, bool> > whereCondition, int topCount = 0) { var result = await _vehicleToWheelBaseRepositoryService .GetAsync(whereCondition, 100000, "WheelBase", "Vehicle.BaseVehicle.Make", "Vehicle.BaseVehicle.Model", "Vehicle.BaseVehicle.Year", "Vehicle.SubModel"); return(result.Where(x => x.DeleteDate == null).ToList()); }