public ActionResult AboutUs() { D_APIModelFiller DMF = new D_APIModelFiller(); var model = new AboutUsModelView() { CompanyCustomers = DMF.CompanyCustomers(), TeamMembers = DMF.TeamMembers() }; return(View(model)); }
public ActionResult Product_Detail(int Id) { if (HttpContext.Request.Cookies[StaticLicense.LicName + "Factor"] != null) { string SSSession = ""; HttpCookie cookie = HttpContext.Request.Cookies.Get(StaticLicense.LicName + "Factor"); if (cookie != null) { Encryption ENC = new Encryption(); SSSession = ENC.DecryptText(cookie.Value, "OMD_FACTOR"); MiniFactorModel minif = JsonConvert.DeserializeObject <MiniFactorModel>(SSSession); D_APIModelFiller dmf = new D_APIModelFiller(); FactorPopUpModel FPM = dmf.shoppingCart(minif.Id); FactorMasterModel modell = new FactorMasterModel() { ListOfProducts = FPM, Totality = minif }; ViewBag.factorMasterModel = modell; } else { ViewBag.factorMasterModel = null; } } else { ViewBag.factorMasterModel = null; } D_APIModelFiller DMF = new D_APIModelFiller(); var model = new ProductDetail_ModelView() { ProductModel = DMF.SingleProduct(Id, "Ago"), Company = DMF.CompanyCustomers() }; model.RelatedProducts = DMF.ProductList(15, "گروه اصلی", model.ProductModel.SubCatId, 1, "", "Ago"); return(View(model)); }