Exemplo n.º 1
0
 // GET: Criteria/Create
 public ActionResult Create()
 {
     ViewBag.CertificateId         = new SelectList(certificateService.GetAll(), "Id", "Name");
     ViewBag.ProductionEquipmentId = new SelectList(productionEquipmentService.GetAll(), "Id", "Name");
     ViewBag.SystemUserId          = new SelectList(systemUserService.GetAll(), "Id", "UserName");
     ViewBag.UnitId      = new SelectList(unitService.GetAll(), "Id", "Name");
     ViewBag.UserGroupId = new SelectList(userGroupService.GetAll(), "Id", "Name");
     return(View());
 }
 // GET: ChangeQualityPlans/Create
 public ActionResult Create()
 {
     ViewBag.CertificateId         = new SelectList(certificateService.GetAll(), "Id", "Name");
     ViewBag.CriterionId           = new SelectList(criterionService.GetAll(), "Id", "Name");
     ViewBag.MaterialId            = new SelectList(materialService.GetAll(), "Id", "Id");
     ViewBag.QualityPlanId         = new SelectList(qualityPlanService.GetAll(), "Id", "Id");
     ViewBag.UnitId                = new SelectList(unitService.GetAll(), "Id", "Name");
     ViewBag.ProductionEquipmentId = new SelectList(productionEquipmentService.GetAll(), "Id", "Name");
     return(View());
 }
Exemplo n.º 3
0
        // GET: Employees/Create
        public ActionResult Create()
        {
            ViewBag.CertificateId = new SelectList(certificateService.GetAll(), "Id", "Name");
            ViewBag.CityId        = new SelectList(cityService.GetAllByCountryId(Guid.NewGuid()), "Id", "Name");
            ViewBag.CountryId     = new SelectList(countryService.GetAll(), "Id", "Name");
            ViewBag.DepartmentId  = new SelectList(departmentService.GetAll(), "Id", "Name");
            ViewBag.PositionId    = new SelectList(positionService.GetAll(), "Id", "Name");
            ViewBag.RegionId      = new SelectList(regionService.GetAllByCityId(Guid.NewGuid()), "Id", "Name");

            return(View());
        }
Exemplo n.º 4
0
        // GET: Certificates
        public ActionResult Index()
        {
            var certificate = Mapper.Map <IEnumerable <CertificateViewModel> >(certificateService.GetAll());

            return(View(certificate));
        }