Ejemplo n.º 1
0
 public Task Delete(int id)
 {
     return(usersRepository.DeleteAsync(id));
 }
Ejemplo n.º 2
0
 public async Task DeleteAsync(string id)
 {
     var entityId = ObjectIdentifierParser.ValidateAndParse(id);
     await _entitiesRepository.DeleteAsync(entityId);
 }
Ejemplo n.º 3
0
 /// <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));
 }