Exemplo n.º 1
0
        //
        // GET: /ImportBatches/Create
        public ActionResult Create()
        {
            var model = new ImportBatchesViewModelItem();

            model = model.Populate(db);
            return(View(model));
        }
Exemplo n.º 2
0
        //
        // GET: /ImportBatches/Edit/5
        public ActionResult Edit(int id)
        {
            var model = new ImportBatchesViewModelItem();

            model = model.Populate(db, id);
            if (model == null)
            {
                return(HttpNotFound());
            }
            return(View(model));
        }