Beispiel #1
0
        public IActionResult CaseSessionFastDocument_SelectForSessionCheck(CheckListViewVM model)
        {
            string _isvalid = IsValidCopyCaseSessionFastDocument(model);

            if (_isvalid != string.Empty)
            {
                SetErrorMessage(_isvalid);
                return(View("CopyCaseSessionFastDocument", model.ObjectId));
            }

            if (service.CaseSessionFastDocument_SaveSelectForSessionCheck(model))
            {
                CheckAccess(service, SourceTypeSelectVM.CaseSessionPerson, null, AuditConstants.Operations.Update, model.ObjectId);
                SetSuccessMessage(MessageConstant.Values.SaveOK);
            }
            else
            {
                SetErrorMessage(MessageConstant.Values.SaveFailed);
            }

            return(RedirectToAction("Index", "CaseSessionFastDocument", new { CaseSessionId = model.ObjectId }));
        }