コード例 #1
0
        public async Task <IActionResult> Delete(Guid userId, string friendId)
        {
            if (userId == Guid.Empty || string.IsNullOrEmpty(friendId))
            {
                return(NotFound());
            }

            await _relationRepository.DeleteRelationAsync(userId, Guid.Parse(friendId));

            return(NoContent());
        }