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); } } }