/// <summary>
 /// Used to Store POID in PurchaseOrder Table
 /// </summary>
 /// <param name="POrder">
 /// FormData
 /// </param>
 /// <returns>
 /// Count value , if Pass Count = 1 else Count=0
 /// </returns>
 public JsonResult InsertPurchaseData(PurchaseOrder POrder)
 {
     var count = 0;
     try
     {
         _paytmBo.PurchaseOrderData(POrder);
         count = 1;
         return Json(count, JsonRequestBehavior.AllowGet);
     }
     catch (Exception ex)
     {
         count = 0;
         return Json(count, JsonRequestBehavior.AllowGet);
     }
 }
Ejemplo n.º 2
0
 //StorePurchaseOrder Value
 public void PurchaseOrderData(PurchaseOrder POrder)
 {
     _unitOfWork.Repository<PurchaseOrder>().Insert(POrder);
     _unitOfWork.Save();
 }