Exemplo n.º 1
0
 public async Task <IActionResult> SearchEbizWebFormPendingPayments([FromBody] EmailDetailModel model)
 {
     try
     {
         dynamic response = await new EmailManager().SearchEbizWebFormPendingPayments(model);
         return(Ok(response));
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }
Exemplo n.º 2
0
 public async Task <IActionResult> DeleteEBizWebFormPayment([FromBody] EmailDetailModel model)
 {
     try
     {
         if (string.IsNullOrEmpty(model.paymentInternalId))
         {
             string msg = "paymentInternalId should not be null or empty";
             return(BadRequest(msg));
         }
         dynamic response = await new EmailManager().DeleteEBizWebFormPayment(model);
         return(Ok(response));
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }
Exemplo n.º 3
0
 public async Task <IActionResult> GetEmailTemplate([FromBody] EmailDetailModel model)
 {
     try
     {
         if (string.IsNullOrEmpty(model.ebizWebForm?.EmailTemplateID))
         {
             string msg = "EmailTemplateID should not be empty or null.";
             return(BadRequest(msg));
         }
         // model.ebizWebForm.CustomerId = "409";
         model.ebizWebForm.ProcessingCommand = "Sale";
         //model.ebizWebForm.EmailTemplateID = "c5eabda5-26ca-4724-b361-25f542714b3e";
         //model.ebizWebForm.EmailAddress = "";
         dynamic response = await new EmailManager().GetEmailTemplate(model);
         return(Ok(response));
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }