public ActionResult Lot(LotViewModel lotView) { if (ModelState.IsValid == false) { return(View("Lot", lotView)); } var actualLot = _crudLotService.GetLotById(lotView.Id); if (actualLot != null) { lotView.CurrentPrice = actualLot.CurrentPrice; lotView.MinimalStepRate = actualLot.MinimalStepRate; } if (lotView.PriceRate < lotView.CurrentPrice + lotView.MinimalStepRate) { ModelState.AddModelError("", "Price your rate should be more that minimal step"); return(View("Lot", lotView)); } _lotService.MakeRate(lotView.Id, lotView.CurrentUserId, lotView.PriceRate); return(RedirectToAction("Index", "LotManager")); }