public string CreatePurchaseOrderDetails(PurPurchaseOrder _objPurchaseOrder)
 {
     try
     {
         _dbContext.PurchaseOrder.Add(_objPurchaseOrder);
         _dbContext.SaveChanges();
         return(HttpStatusCode.Created.ToString());
     }
     catch (Exception exp)
     {
         throw exp;
     }
 }
 public string CreateCustomer(CusCustomer customer)
 {
     try
     {
         _dbContext.Customer.Add(customer);
         _dbContext.SaveChanges();
         return(HttpStatusCode.Created.ToString());
     }
     catch (Exception exp)
     {
         throw exp;
     }
 }
 public string CreateProduct(InvProduct _objProduct)
 {
     try
     {
         _dbContext.Product.Add(_objProduct);
         _dbContext.SaveChanges();
         return(HttpStatusCode.Created.ToString());
     }
     catch (Exception exp)
     {
         throw exp;
     }
 }
Esempio n. 4
0
 public string CreateSaleTransaction(TrxTransaction trxTransaction)
 {
     try
     {
         _dbContext.TrxTransaction.Add(trxTransaction);
         _dbContext.SaveChanges();
         return(HttpStatusCode.Created.ToString());
     }
     catch (Exception exp)
     {
         throw exp;
     }
 }