public ActionResult SubmitAdd(VM_UserAndProduct_help up) { Product p = up.product; if (ModelState.IsValid) { Product product = new Product(p, true); ProductDal dal = new ProductDal(); dal.Products.Add(p); dal.SaveChanges(); HistoricalProductDal dalHistori = new HistoricalProductDal(); dalHistori.Products.Add(p); dalHistori.SaveChanges(); return(View("Actions", new VMUserAndProducrs(manager))); } else { return(View("AddNewProduct", p)); } }