Пример #1
0
 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));
     }
 }
Пример #2
0
        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));
            }
        }