コード例 #1
0
        public static ActionResult GetResult(string message, ResponseFamilyErrorEnum codeResult, HttpRequestMessage request, object data)
        {
            var result = new ModelResult()
            {
                Message    = message,
                ModelState = codeResult,
                Data       = data
            };

            return(new ActionResult(result, request));
        }
コード例 #2
0
 public ActionResult(ModelResult value, HttpRequestMessage request)
 {
     try
     {
         _value   = value;
         _request = request;
     }
     catch (Exception)
     {
     }
 }