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)); }
public ActionResult(ModelResult value, HttpRequestMessage request) { try { _value = value; _request = request; } catch (Exception) { } }