public async Task DeleteAsync(Guid glossaryId) { var identityName = User.Identity.Name; Guid userId = (Guid)ur.GetID(identityName); await _userActionRepository.AddDeleteGlossaryActionAsync(userId, identityName, glossaryId, ""); await _glossariesService.DeleteAsync(glossaryId); }