public IHttpActionResult PostAdhoc(AdHocRequest request) { try { var listrak = new ListrakRepository(); return(Ok(listrak.UpdateLists(request.FieldItems, request.ListsToUpdate, request.PageName))); } catch (Exception e) { if (e.InnerException != null) { return(Ok(e.InnerException.Message)); } return(Ok(e.Message)); } }
public IHttpActionResult PostCoregLead(CoregPostRequest request) { try { var listrak = new ListrakRepository(); return(Ok(listrak.UpdateLists(request.Data, request.ListsToUpdate, request.PageName))); } catch (Exception e) { if (e.InnerException != null) { return(Ok(e.InnerException.Message)); } return(Ok(e.Message)); } }