Beispiel #1
0
        public IActionResult SessionLawUnitFromCase(CheckListViewVM model)
        {
            if (service.SessionLawUnitFromCase_SaveData(model))
            {
                CheckAccess(service, SourceTypeSelectVM.CaseSessionLawUnit, null, AuditConstants.Operations.ChoiceByList, model.ObjectId);
                SetSuccessMessage(MessageConstant.Values.SaveOK);
                this.SaveLogOperation(IO.LogOperation.Models.OperationTypes.Patch, model.ObjectId);
            }
            else
            {
                SetErrorMessage(MessageConstant.Values.SaveFailed);
            }

            ViewBag.backUrl = Url.Action("Preview", "CaseSession", new { id = model.ObjectId });
            return(View("CheckListViewVM", model));
        }