Beispiel #1
0
        public IActionResult Add()
        {
            ViewBag.AirConditionerModelList = new SelectList(_airConditionerModelService.GetAll(), "Id", "Name");
            ViewBag.EngineVolumeList        = new SelectList(_engineVolumeService.GetAll(), "Id", "Name");
            ViewBag.UserExpertList          = new SelectList(_userExpertService.GetAll(), "Id", "Name");
            ViewBag.UserOperatorList        = new SelectList(_userOperatorService.GetAll(), "Id", "Name");
            ViewBag.UserTechnicianList      = new SelectList(_userTechnicianService.GetAll(), "Id", "Name");
            ViewBag.UserAssistantList       = new SelectList(_userAssistantService.GetAll(), "Id", "Name");
            ViewBag.CustomerList            = _customerService.GetAll();

            ViewBag.PieceList = _pieceService.GetAll();



            return(View());
        }
        public IActionResult Index()
        {
            var list = _airConditionerModelService.GetAll();

            return(View(list));
        }