public static FormatJsonResult JsonFormat(this Controller c
     , object data
     , JsonRequestBehavior behavior = JsonRequestBehavior.DenyGet)
 {
     FormatJsonResult result = new FormatJsonResult();
     result.Data = data;
     result.JsonRequestBehavior = behavior;
     return result;
 }
示例#2
0
        public static FormatJsonResult JsonFormat(this Controller c
                                                  , object data
                                                  , JsonRequestBehavior behavior = JsonRequestBehavior.DenyGet)
        {
            FormatJsonResult result = new FormatJsonResult();

            result.Data = data;
            result.JsonRequestBehavior = behavior;
            return(result);
        }