Exemplo n.º 1
0
        private async Task DeleteProfile(int profileId)
        {
            try
            {
                await ProfileService.DeleteProfileAsync(profileId);

                await logger.LogInformation("Profile Deleted {ProfileId}", profileId);

                AddModuleMessage("Profile Deleted", MessageType.Success);
            }
            catch (Exception ex)
            {
                await logger.LogError(ex, "Error Deleting Profile {ProfileId} {Error}", profileId, ex.Message);

                AddModuleMessage("Error Deleting Profile", MessageType.Error);
            }
        }