public IResult DeleteAsync(Order order) { _orderDal.DeleteAsync(order); return(new SuccessResult(OrderMessages.Deleted)); }
public async Task <IResult> Delete(Order order) { await _orderDal.DeleteAsync(order); return(new SuccessResult(Messages.DeletedOrder)); }
public async Task DeleteAsync(Order entity, bool realDelete = false) { var cancelToken = new CancellationTokenSource(); await _orderDal.DeleteAsync(entity, cancelToken.Token, realDelete); }