public async Task DeleteProfile(string profileId) { var profile = await GetProfile(profileId); if (profile == null) { return; } _db.Remove(profile); await _db.SaveChangesAsync(); }
public async Task DeleteImage(string imageId) { var image = await GetImage(imageId); if (image == null) { return; } _db.Remove(image); await _db.SaveChangesAsync(); }