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