public void Save(ReceivingDTO receivingDTO)
        {
            poRepo.ChangeStatus(receivingDTO.PoNo, receivingDTO.Status, receivingDTO.RRNo, receivingDTO.DateReceived);

            //foreach (ReceivingDTO.Item item in receivingDTO.Items) {
            //    PurchaseOrderItem poItem = poItemRepo.Find(item.PoItemId);

            //    poItem.SerialNo = item.SerialNo;
            //    //poItem.ReceivedQuantity = item.ReceivedQuantity;
            //    poItem.DrNo = item.DrNo;
            //    poItem.Date = item.Date;
            //    poItem.RemainingBalanceDate = item.RemainingBalanceDate;

            //    int quantity = 0;
            //    if (poItem.TransactionLogId.HasValue == false)
            //    {
            //        quantity = poItem.ReceivedQuantity;
            //    }
            //    else {
            //        TransactionLog transLog = poItem.TransactionLog;

            //        quantity = poItem.ReceivedQuantity - transLog.CumulativeQuantity;
            //    }

            //    if (quantity != 0) {
            //        poItem.TransactionLogId = InsertLogs(poItem.ItemId, quantity, poItem.ReceivedQuantity);
            //    }

            //    context.SaveChanges();
            //}
        }