示例#1
0
 public ActionResult Intro(int id)
 {
     try
     {
         if (id <= 0)
         {
             return(Redirect("/Home/NotFound"));
         }
         var brandInfo = brandBll.GetBrandInfo(id, base.language);
         int spuCount  = brandBll.GetBrandSaleSpuCount(id, base.language, base.DeliveryRegion);
         ViewBag.SpuCount  = spuCount;
         ViewBag.StoreList = brandBll.GetStoreListByBrandId(id, base.language);
         if (brandInfo == null)
         {
             return(Redirect("/Home/NotFound"));
         }
         return(View(brandInfo));
     }
     catch (Exception ex)
     {
         LogHelper.Error(ex);
         return(Redirect("/home/error"));
     }
 }