public IHttpActionResult GoogleSheet_Sheet(CampainRequest data) { try { if (data.Action == "find") { var res = _uow.Integration.GoogleSheet_GetSheets(CurrentUserId, data.AccId, data.Data, data.PageId.Value); return(Ok(res)); } else { var res = _uow.Integration.GoogleSheet_CreateSpreadSheet(CurrentUserId, data.AccId, data.Data, data.PageId.Value); return(Ok(res)); } } catch (BusinessException ex) { return(BadRequest(ex.Message)); } catch (Exception ex) { _log.Error(ex); return(BadRequest(this.General_Err)); } }
public IHttpActionResult InfusionSoftCampains(CampainRequest data) { try { var campains = _uow.Integration.InfusionSoft_Auth_GetCampains(CurrentUserId, data.AccId); return(Ok(campains)); } catch (BusinessException ex) { return(BadRequest(ex.Message)); } catch (Exception ex) { _log.Error(ex); return(BadRequest(this.General_Err)); } }