public async Task DeleteAsync(Guid id) { if (id.ToString() == UnchangeableEntities.AdminOrganisationGuidString) { throw new GreenFieldException("unchangeable_entity", "You cannot change this organisation"); } await _repository.DeleteAsync(id); }
public async Task DeleteByOrganisationNameAsync(string organisationName) { await repository.DeleteAsync(o => o.Name == organisationName); }