public ActionResult SetGrad(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } var scor = _ElectionService.GetForSetScore(id.Value); if (scor == null) { return(HttpNotFound()); } ViewBag.SSS = setGrid(scor.Score); return(View(scor)); }