public ActionResult Approve(ApproveSessionsViewModel model)
        {
            ApproveByJudgeStatus result = SessionService.ApproveSessionByJudge((int)model.SessionID, model.CaseID);

            switch (result)
            {
            case ApproveByJudgeStatus.Failed:
                return(RedirectJS(Url.Action("Index")).WithErrorMessages(Messages.OperationNotCompleted));

            case ApproveByJudgeStatus.Failed_Attachements:
                return(RedirectJS(Url.Action("Index")).WithErrorMessages(Messages.AttachmentsUnSaved));

            case ApproveByJudgeStatus.Failed_Decision:
                return(RedirectJS(Url.Action("Index")).WithErrorMessages(Messages.DecisionUnSaved));

            case ApproveByJudgeStatus.Failed_DefectsPresence:
                return(RedirectJS(Url.Action("Index")).WithErrorMessages(Messages.DefectsPresenceUnSaved));

            case ApproveByJudgeStatus.Failed_Session:
                return(RedirectJS(Url.Action("Index")).WithErrorMessages(Messages.SessionMinUnSaved));

            case ApproveByJudgeStatus.SessionApprovedSuccessfully:
                // return CPartialView().WithSuccessMessages(Messages.OperationCompletedSuccessfully);
                return(RedirectJS(Url.Action("Index")).WithSuccessMessages(JIC.Base.Resources.Messages.OperationCompletedSuccessfully));
                // return Json(Messages.OperationCompletedSuccessfully, JsonRequestBehavior.AllowGet);
            }
            return(RedirectJS(Url.Action("Index")));
        }