public ActionResult CreateSell(WantThis.Source.SellWrapper sell_wrapper)
 {
     WantThis.Models.Product product = sell_wrapper.product_wrapper.product;
     if (ModelState.IsValid){
         try{
             product.Owner = User.Identity.Name;
             productRepo.Add(product);
             productRepo.Save();
             productRepo.AddSell(product.ProductID,sell_wrapper.urgency, sell_wrapper.price);
             return RedirectToAction("UploadImage", new { id = product.ProductID });
         }
         catch{
             foreach (var issue in sell_wrapper.GetRuleViolations())
             {
                 ModelState.AddModelError(issue.PropertyName, issue.ErrorMessage);
             }
         }
     }
     return View(new SellWrapper(sell_wrapper.product_wrapper, sell_wrapper.urgency, sell_wrapper.price));
 }
 public ProductRating(WantThis.Models.Product product, int rating)
 {
     this.product = product;
     this.rating = rating;
 }