Exemple #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());
        }
Exemple #2
0
 // GET: api/Piece
 public IEnumerable <Piece> Get()
 {
     return(pieceSvc.GetAll());
 }
Exemple #3
0
        public IActionResult Index()
        {
            var list = _pieceService.GetAll();

            return(View(list));
        }