public ActionResult Index(RequisicioModel model)
        {
            try
            {
                if (ModelState.IsValid)
                {
                    using (CPMEntities datos = new CPMEntities())
                    {
                        datos.sp_Requisito((int)Session["User"], model.IdCliente, "C");

                        foreach (var item in model.DetalleRequisicion)
                        {
                            datos.sp_RequisitoDetalle(1, item.IdProducto, item.IdBodega, item.Cantidad, item.Valor, item.ISV);
                        }
                    }
                }
                return(Redirect("~/Home/"));
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }