internal static LotModel ToLotModel(BllLot blllot) { if(blllot!=null) return new LotModel() { Id = blllot.Id, TimeBegin = blllot.TimeBegin, Statys = (Statys)blllot.StatysId, StartPrice = blllot.StartPrice, Name = blllot.Name, EndPrice = blllot.EndPrice, Description = blllot.Description, DateBegin = blllot.DateBegin, BuyerName = blllot.BuyerName }; return null; }
internal static DalLot ToDalLot(BllLot blllot) { if (blllot != null) return new DalLot() { UserId = blllot.UserId, TimeBegin = blllot.TimeBegin, StatysId = blllot.StatysId, StartPrice = blllot.StartPrice, Name = blllot.Name, Id = blllot.Id, EndPrice = blllot.EndPrice, Description = blllot.Description, DateBegin = blllot.DateBegin, CathegoryId = blllot.CathegoryId, BuyerName = blllot.BuyerName }; return null; }
public void UpdateLot(BllLot blllot) { lotRepository.Update(Maper.ToDalLot(blllot)); uow.Commit(); }