public IHttpActionResult GoogleSheetRemoveFormConfig(SetCampainRequest data) { try { _uow.FormConfig.Delete(data.LandingPageId, data.IntegrationId); return(Ok()); } catch (BusinessException ex) { return(BadRequest(ex.Message)); } catch (Exception ex) { _log.Error(ex); return(BadRequest(this.General_Err)); } }
public IHttpActionResult InfusionSoftSetCampain(SetCampainRequest data) { try { FormConfig frmConfig = new FormConfig() { LandingPageId = data.LandingPageId, IntegrationId = data.IntegrationId, ListId = data.Id, ListName = data.Name }; _uow.FormConfig.IU(frmConfig); return(Ok()); } catch (BusinessException ex) { return(BadRequest(ex.Message)); } catch (Exception ex) { _log.Error(ex); return(BadRequest(this.General_Err)); } }