public Task Delete(int id) { return(usersRepository.DeleteAsync(id)); }
public async Task DeleteAsync(string id) { var entityId = ObjectIdentifierParser.ValidateAndParse(id); await _entitiesRepository.DeleteAsync(entityId); }
/// <summary> /// Deletes the specified Entity from the backing repository, as an asynchronous operation. /// </summary> /// <param name="entity">The Entity to delete.</param> /// <returns> /// The System.Threading.Tasks.Task that represents the asynchronous operation, containing the KerykeionDbResult of the operation. /// </returns> public async Task <KerykeionDbResult> DeleteAsync(object entity) { return(await EntitiesRepo.DeleteAsync(entity)); }