// GET: MeasureUnits
        public IActionResult Index()
        {
            IEnumerable <MeasureUnit> measureUnits = measureUnitsRepository.GetAll();

            return(View(measureUnitsRepository.GetAll()));
        }
Esempio n. 2
0
 public async Task <IEnumerable <MeasureUnit> > GetAll()
 {
     return(await repository.GetAll());
 }
 // GET: Materials/Create
 public IActionResult Create()
 {
     ViewData["MeasureUnitId"] = new SelectList(measureUnitRepository.GetAll(), "Id", "Title");
     return(View());
 }