Exemple #1
0
 public ActionResult Create()
 {
     ViewBag.FamilyList    = _familyService.GetFamilies();
     ViewBag.CatalogueList = _catalogueService.GetCatalogues(ViewBag.FamilyList[0].FamilyId);
     ViewBag.BrandList     = _brandService.GetBrands();
     return(View());
 }
 // GET: Catalogue
 public ActionResult Index()
 {
     _catalogueService.GetCatalogues();
     return(View());
 }
Exemple #3
0
 public IActionResult Catalogues()
 {
     return(View(_catalogueService.GetCatalogues()));
 }
Exemple #4
0
        public JsonResult GetCatalogues(int familyId)
        {
            var catalogues = _catalogueService.GetCatalogues(familyId);

            return(Json(catalogues.Select(x => new { x.CatalogueId, x.Name })));
        }