예제 #1
0
        public async Task <IActionResult> Measurments()
        {
            var model = new MeasurmentViewModel
            {
                Measurements = await categoryService.FindAllMeasurements()
            };

            return(View(model));
        }
예제 #2
0
        public IActionResult Measurments(MeasurmentViewModel model)
        {
            categoryService.AddMeasurementAsync(new Measurement
            {
                TextAZ = model.TextAZ,
                TextRU = model.TextRU
            });

            return(RedirectToAction("Measurments"));
        }