Ejemplo n.º 1
0
        public ActionResult Index()
        {
            web.Areas.Admin.Models.VMProductGroupModel grouplist = new web.Areas.Admin.Models.VMProductGroupModel();
            grouplist.ProductGroup = ProductManager.GetProductGroupList("tr");

            var prodgroups = ProductManager.GetProductGroupList("tr").Where(x => x.TopProductId == 1).Take(6);

            int[] pgoupids = prodgroups.Select(d => d.ProductGroupId).ToArray();
            grouplist.Products = ProductManager.GetProductTopListFront(pgoupids).ToList();

            return(View(grouplist));
        }
Ejemplo n.º 2
0
        public PartialViewResult GetAddress()
        {
            web.Areas.Admin.Models.VMProductGroupModel grouplist = new web.Areas.Admin.Models.VMProductGroupModel();
            List <ProductGroup> pgList = ProductManager.GetProductGroupList(lang);

            ViewData["pgList"] = pgList;

            Contact cont = ContactManager.GetContact(lang);

            ViewBag.Services = ServiceManager.GetServiceListForFront(lang).Take(3);
            return(PartialView("Partial/_footeraddress", cont));
        }