public async Task <bool> DeleteExample(Guid id) { if (await ExistsAsync(id, null, "ExampleBusiness")) { _exampleRepository.Remove(id); if (await Commit()) { return(true); } } return(false); }
public void Delete(int id) { _exampleRepository.Remove( _exampleRepository.Get(id) ); }