Ejemplo n.º 1
0
        // GET: Category
        public ActionResult Index(int brandId)
        {
            ViewBag.BrandId = brandId;
            ViewBag.Brands  = BrandmasterCRUD.GetBrandMaster();
            var categories = GRP_MASTERCRUD.GetCategoryByBrandId(brandId);

            return(View());
        }
Ejemplo n.º 2
0
 // GET: Product
 public ActionResult Index(string catId, int?page)
 {
     ViewBag.CatId  = catId;
     ViewBag.Brands = BrandmasterCRUD.GetBrandByCatId(catId);
     //ViewBag.Attributes = AttributeCRUD.GetAttribute(0);
     return(View());
     //return PartialView("_ProductListing", viewModel);
 }
Ejemplo n.º 3
0
 public ActionResult Index()
 {
     ViewBag.BrandOnHomePage = BrandmasterCRUD.GetBrandMaster().Where(x => x.IsOnHomePage == true);
     if (Session["idUser"] != null)
     {
         ViewBag.totalItemsInCart     = CustomerCartCRUD.GetCartByCustomerId(Convert.ToInt32(Session["idUser"])).Where(x => x.IsPlace == false).Count();
         ViewBag.totalItemsInWishList = CustmorWishlistCRUD.GetWishlistByCustomerId(Convert.ToInt32(Session["idUser"])).Count();
     }
     else
     {
         ViewBag.totalItemsInCart     = 0;
         ViewBag.totalItemsInWishList = 0;
     }
     return(View());
 }
Ejemplo n.º 4
0
        public ActionResult GetBrandList()
        {
            try
            {
                var data = BrandmasterCRUD.GetBrandMaster().Where(x => x.IsOnHomePage == true).ToList();
                return(PartialView("_BrandList", data));
            }
            catch (Exception ex)
            {
                ExceptionLogDomain obj = new ExceptionLogDomain();
                obj.MethodName     = "GetMenuList";
                obj.ControllerName = "Menu";
                obj.ErrorText      = ex.Message;
                obj.StackTrace     = ex.StackTrace;
                obj.Datetime       = DateTime.Now;

                ExceptionLogCRUD.AddToExceptionLog(obj);
                return(RedirectToAction("Index", "Error"));
            }
        }