public async Task <IActionResult> Measurments() { var model = new MeasurmentViewModel { Measurements = await categoryService.FindAllMeasurements() }; return(View(model)); }
public IActionResult Measurments(MeasurmentViewModel model) { categoryService.AddMeasurementAsync(new Measurement { TextAZ = model.TextAZ, TextRU = model.TextRU }); return(RedirectToAction("Measurments")); }