示例#1
0
 public ApiResponse(aymkError error, string entityName, string errDetail = "")
 {
     this.IsSuccess = false;
     this.Message   = error.GetDescription();
     this.Detail    = string.Format("{0}{1}{2}", entityName, errDetail == "" ? "" : Environment.NewLine, errDetail);
 }
示例#2
0
 public ApiResponse(aymkError error, string entityName, Exception ex)
 {
     this.IsSuccess = false;
     this.Message   = error.GetDescription();
     this.Detail    = string.Format("{0}{1}{2}", entityName, Environment.NewLine, ex.ToString());
 }
示例#3
0
 public ApiResponse(aymkError error, string errDetail = "")
 {
     this.IsSuccess = false;
     this.Message   = error.GetDescription();
     this.Detail    = errDetail;
 }