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

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