コード例 #1
0
        public async Task <IActionResult> CreateInventoryItem()
        {
            InventoryItemsCreatViewModel model = new InventoryItemsCreatViewModel()
            {
                MeasurmentUnits = await _repository.GetAllMeasurmentUnitsAsync(),
                Suppliers       = await _repository.GetSuppliersAsync(SelectionOptions.Active, SelectionOptions.All)
            };

            ViewBag.Title = _stringLocalizer["Create Inventory Item"].ToString();
            return(View(model));
        }
コード例 #2
0
        public async Task <IActionResult> Index()
        {
            IEnumerable <MeasurmentUnit> model = await _repository.GetAllMeasurmentUnitsAsync();

            ViewBag.Title = _stringLocalizer["Measurment Units"].ToString();
            return(View(model));
        }