public LotDTO GetLot(int id) { var lot = _lotRepo.GetLot(id); if (lot.Size is Before14ClotheSize) { return(new Before14ClotheLotDTOCreator().Create(lot)); } if (lot.Size is After14ClotheSize) { return(new After14ClotheLotDTOCreator().Create(lot)); } else if (lot.Size is FootwearSize) { return(new FootwearLotDTOCreator().Create(lot)); } return(null); }
public Lot GetLot(string id) { return(_lots.GetLot(id)); }