public JsonResult ShowPeriodModal(int periodId) { ViewBag.Grade = _gradeRepository.GetAll(periodId).Data; ViewBag.IsReadyToAdd = _repository.IsReadyToAdd(); return(Json(new { Html = RenderPartial.RenderPartialView(this, "~/Views/Period/_create.cshtml", null), Message = "", Status = "OK" }, JsonRequestBehavior.AllowGet)); }