Exemplo n.º 1
0
 public void Delete(Entity entity)
 {
     if (_crudValidator != null)
     {
         _crudValidator.Delete(entity);
     }
     _crudManager.Delete(entity);
 }
Exemplo n.º 2
0
        public static async Task <ActionResult> Delete <T, TKey>(this Controller controller, ICrudManager <T, TKey> manager, IEnumerable <TKey> ids) where T : class where TKey : IComparable
        {
            await manager.Delete(ids);

            return(controller.NoContent());
        }
Exemplo n.º 3
0
 public async Task Delete(T value)
 {
     await _manager.Delete(value);
 }