public IResult AddAsync(Order order) { _orderDal.AddAsync(order); return(new SuccessResult(OrderMessages.Added)); }
public async Task <IDataResult <long> > GetByIdAdd(Order orders) { await _orderDal.AddAsync(orders); return(new SuccessDataResult <long>(orders.Id, Messages.AddedOrder)); }
public async Task AddAsync(Order entity) { var cancelToken = new CancellationTokenSource(); await _orderDal.AddAsync(entity, cancelToken.Token); }