public ActionResult EditBatch(int id)
        {
            var batchVm = new BatchCreateVM();

            if (id > 0)
            {
                var batch = _batchManager.GetById(id);

                batchVm = Mapper.Map <BatchCreateVM>(batch);
                batchVm.selectListOrganization = _selectOptionId.SelectOrganization();
                batchVm.selectListCourse       = _selectOptionId.SelectCourse();
            }

            return(View(batchVm));
        }
Beispiel #2
0
        //Edit Batches
        public ActionResult Edit(int id)
        {
            var batch = new Batch();

            if (id > 0)
            {
                batch = _batchManager.GetById(id);
                var model = Mapper.Map <BatchEntryVm>(batch);

                model.OrganizationList = GetOrganizationList();

                return(View(model));
            }

            return(View());
        }