public async Task AttendeeResponseAsync(Guid inviteId, Constants.AttendeeResponseStatus status)
        {
            ParameterDictionary parameters = new ParameterDictionary();

            parameters.AddParameter("inviteId", inviteId);
            parameters.AddParameter("status", (int)status);

            await ExecuteStoredProc("[dbo].[spUpdateStatus]", parameters)
            .ConfigureAwait(continueOnCapturedContext: false);
        }
Exemple #2
0
        public async Task <Address> GetReunionAddressAsync(Guid reunionId)
        {
            ParameterDictionary parameters = ParameterDictionary.Single("entityTypeId", (int)EntityType.Reunion);

            parameters.AddParameter("entityId", reunionId.ToString());
            return((await ExecuteStoredProc("[dbo].[spGetAddressByEntityTypeAndId]", parameters)
                    .ConfigureAwait(continueOnCapturedContext: false)).SingleOrDefault());
        }
        public async Task AddAttendees(BulkAttendeeRequest request)
        {
            ParameterDictionary parameters = ParameterDictionary.Single("invites", TvpHelper.MapInvites(request.InviteRequests));

            parameters.AddParameter("userId", request.UserId);

            await ExecuteStoredProc("[dbo].[spCreateInvites]", parameters)
            .ConfigureAwait(continueOnCapturedContext: false);
        }