public ActionResult Index(ResetaModel model)
 {
     try
     {
         if (ModelState.IsValid)
         {
             using (CPMEntities datos = new CPMEntities())
             {
                 foreach (var item in model.lstProductos)
                 {
                     datos.sp_AgregarReceta(model.IdProducto, item.IdproductoE, item.Cantidad);
                 }
             }
         }
         return(Redirect("~/Home"));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }