//hostingEnvironmentPath - physical path to WebAPI folder
 //requestUriLeftPart - URL
 public void AddLot(Lot lot, string hostingEnvironmentPath, string requestUriLeftPart)
 {
     if (lot.StartDate == null || lot.StartDate.CompareTo(DateTime.Now.AddSeconds(-10)) < 0)
     {
         throw new WrongModelException("Wrong start date");
     }
     if (lot.StartDate.CompareTo(lot.SellDate) >= 0)
     {
         throw new WrongModelException("Wrong sell date");
     }
     if (UoW.UserAccounts.Get(lot.SellerUserId) == null)
     {
         throw new WrongIdException("Seller user");
     }
     lot.BuyerUserId = null;
     if (lot.LotPhotos != null && lot.LotPhotos.Any())
     {
         lotPhotoOperationsHandler.AddPhotosToNewLot(lot, hostingEnvironmentPath, requestUriLeftPart);
     }
     UoW.Lots.Add(mapper.Map <LotEntity>(lot));
     UoW.SaveChanges();
 }