Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
 public void UpdateLot(BllLot blllot)
 {
     lotRepository.Update(Maper.ToDalLot(blllot));
     uow.Commit();
 }