Exemplo n.º 1
0
 public CoreJsonResult(object value) : base(value)
 {
     if (value is NetResult <ResponseData> )
     {
         _result = (NetResult <ResponseData>)value;
     }
 }
Exemplo n.º 2
0
        public static NetResult <ResponseData> NewResult(int id, [CallerMemberName] string caller = null)
        {
            ResponseData response = new ResponseData()
            {
                Code = id
            };
            var result = new NetResult <ResponseData>();

            result.Result = response;
            return(result);
        }