public async Task UpdateDetailAsync(OrderDetailDataContext dataContext)
        {
            var orderDetail = await orderDetailRepository.GetByID(dataContext.Id);

            dataContext.Update(orderDetail);

            await CommitAsync();
        }
Exemple #2
0
        public void MarkDelOrderDetail(Guid id)
        {
            var existsTemp = orderDetailRepository.GetByID(id);

            if (existsTemp != null)
            {
                this.orderDetailRepository.Delete(existsTemp);
            }
        }
Exemple #3
0
        public IHttpActionResult ODGetByID(int id)
        {
            var record = odRepo.GetByID(id);

            if (record == null)
            {
                return(NotFound());
            }
            return(Ok(record));
        }