Пример #1
0
        public async Task <IActionResult> Decline(Guid inviteId)
        {
            try
            {
                var userId = await GetUserId();

                if (!Equals(userId, Guid.Empty))
                {
                    var friends = await _service.Decline(inviteId, userId);

                    return(Ok(friends));
                }

                return(BadRequest());
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }