예제 #1
0
        public void SetAnyModelErrors(ModelStateDictionary modelState)
        {
            if (modelState != null && IsValidErrorType)
            {
                var error = ModelStateHelper.GetUploadErrorMessage((RequestErrorType)RequestErrorTypeId, typeof(ErrorResource.Upload));

                if (error != null)
                {
                    ModelStateHelper.AddModelStateError(modelState, error.Item1, error.Item2);
                }
            }
        }