public ActionResult RectangleEdit(RectangleCreatingAndEditingView r)//+ { if (ModelState.IsValid) //Range validation where value is with comma and not with dot //https://laracasts.com/discuss/channels/general-discussion/validate-numeric-with-both-comma-and-dot-nottation?page=1 { try { _figuresService.UpdateRectangle(new RectangleBll(null, r.Id, r.Name, float.Parse(r.Width), float.Parse(r.Height))); return(RedirectToAction("Circles")); } catch (DataNotFoundException ex) { return(RedirectToAction("DataNotFound", "Error", new { message = ex.Message })); } catch (Exception ex) { return(HttpNotFound(ex.Message)); } } return(View(r)); }