Beispiel #1
0
        //Add new contacts to events
        public APIResponse Post(Guid userId, Guid eventId, List <Guid> contactList)
        {
            try
            {
                using (EventFacade eventFacade = new EventFacade())
                    eventFacade.AddContactsToEvent(userId, eventId, contactList);

                APIResponse response = new APIResponse(APIResponse.ReponseStatus.success, null);
                return(response);
            }
            catch (Exception ex)
            {
                APIResponse response = new APIResponse(APIResponse.ReponseStatus.error, new { Error = ex.Message });
                return(response);
            }
        }