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); }
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()); }
public ApiResponse(aymkError error, string errDetail = "") { this.IsSuccess = false; this.Message = error.GetDescription(); this.Detail = errDetail; }