public string errorResponseExcept(ScriptScopeContext scope, ResponseStatus errorStatus, IEnumerable fields)
        {
            if (errorStatus == null)
                return null;

            var fieldNames = Context.DefaultMethods.toVarNames(fields);
            return ViewUtils.ErrorResponseExcept(errorStatus, fieldNames);
        }
        public string errorResponseExcept(ScriptScopeContext scope, ResponseStatus errorStatus, object fields)
        {
            if (errorStatus == null)
            {
                return(null);
            }

            var fieldNames = Context.DefaultMethods.toVarNames(fields);

            return(ViewUtils.ErrorResponseExcept(errorStatus, fieldNames));
        }
Exemple #3
0
 public static string ErrorResponseExcept(this IHtmlHelper html, ICollection <string> fieldNames) =>
 ViewUtils.ErrorResponseExcept(html.GetErrorStatus(), fieldNames);
Exemple #4
0
 public static string ErrorResponseExcept(this HtmlHelper html, string fieldNames) =>
 ViewUtils.ErrorResponseExcept(html.GetErrorStatus(), fieldNames);