Esempio n. 1
0
 public double WholesaleID(int size, int packege)
 {
     _wholesaleHandler.Add(new WholeSaleViewModel
     {
         Package = size,
         Size    = packege
     });
     return(_wholesaleHandler.GetId(size, packege));
 }
Esempio n. 2
0
        public IActionResult Index(WholeSaleViewModel model)
        {
            var result = _wholesaleHandler.Add(model);

            if (ModelState.IsValid || result)
            {
                return(RedirectToAction("Index", "Product"));
            }
            return(View());
        }