Exemple #1
0
 // GET: Brand
 public ActionResult Index(int groupboxId)
 {
     using (var ae = new AvtoritetEntities())
     {
         var brands = ae.Brand.Where(t => t.GroupBoxId == groupboxId).OrderBy(t => t.NameAndFolder).ToList();
         ViewBag.GroupBoxId = groupboxId;
         ViewBag.BradCrumb  = BradCrumb.CreatePathForBrand(groupboxId);
         return(View(brands));
     }
 }
Exemple #2
0
 // GET: GroupBox
 public ActionResult Index(int groupId)
 {
     using (var ae = new AvtoritetEntities())
     {
         var groupboxs = ae.GroupBox.Where(t => t.GroupId == groupId).ToList();
         ViewBag.GroupId   = groupId;
         ViewBag.BradCrumb = BradCrumb.CreatePathForGroupBox(groupId);
         return(View(groupboxs));
     }
 }
Exemple #3
0
 public ActionResult Index(int providerId)
 {
     using (var ae = new AvtoritetEntities())
     {
         var providerFiles = ae.ProviderFile.Where(t => t.ProviderId == providerId).OrderBy(t => t.FileName).ToList();
         ViewBag.providerId = providerId;
         ViewBag.BradCrumb  = BradCrumb.CreatePathForProviderFile(providerId);
         return(View(providerFiles));
     }
 }
Exemple #4
0
 // GET: Provider
 public ActionResult Index(int brandId = 0)
 {
     using (var ae = new AvtoritetEntities())
     {
         var providers = ae.Provider.Where(t => t.BrandId == brandId).OrderBy(t => t.Order).ToList();
         ViewBag.brandId   = brandId;
         ViewBag.BradCrumb = BradCrumb.CreatePathForProvider(brandId);
         return(View(providers));
     }
 }