public async Task UpdateDetailAsync(OrderDetailDataContext dataContext) { var orderDetail = await orderDetailRepository.GetByID(dataContext.Id); dataContext.Update(orderDetail); await CommitAsync(); }
public void MarkDelOrderDetail(Guid id) { var existsTemp = orderDetailRepository.GetByID(id); if (existsTemp != null) { this.orderDetailRepository.Delete(existsTemp); } }
public IHttpActionResult ODGetByID(int id) { var record = odRepo.GetByID(id); if (record == null) { return(NotFound()); } return(Ok(record)); }