// GET: AddAssetModel
 public ActionResult AddAssetModel()
 {
     return(View(new AddAssetModelViewModel
     {
         Categories = db.CategoryDropdown(),
     }));
 }
        public EditAssetModelViewModel()
        {
            SelectedCategoryId = -1;
            Categories         = db.CategoryDropdown();

            DeletedProperties = new List <PropertyEditor>();
            Properties        = new List <PropertyEditor>();
            NewProperties     = new List <PropertyEditor>();
        }
Exemple #3
0
 public SearchViewModel()
 {
     SelectedCategoryId = -1;
     Categories         = db.CategoryDropdown();
 }