public static void SuccessNonJsonConvert(this SOAPResult r, string data) { r.IsComplete = true; r.IsSuccess = true; if (data != null) { r.ReturnObjectJson = data; } }
public static void Success(this SOAPResult r, object data = null) { r.IsComplete = true; r.IsSuccess = true; if (data != null) { r.ReturnObjectJson = JsonUtils.SerializeObject(data); } }
public static void Fail(this SOAPResult r, BusinessException ex) { r.IsComplete = true; r.IsSuccess = false; r.BusinessExceptionInfo = ex.GetInfo(); }
public static void Error(this SOAPResult r, Exception ex) { r.IsComplete = false; r.ExceptionInfo = ex.GetFullInfo(); r.IsSuccess = false; }