public IActionResult AddYield(NewYieldVm model) { if (ModelState.IsValid) { _yieldService.AddYield(model, userId); return(RedirectToAction("Index")); } return(View(model)); }