예제 #1
0
        public string GetPurchaseInvoiceDetailById(clspurchaseInvoice obj)
        {
            string result = "";

            try
            {
                purchase_invoice_Entity             objEntities = new purchase_invoice_Entity();
                SP_purchase_invoice_SelectOneResult objResult   = new SP_purchase_invoice_SelectOneResult();
                objResult = objEntities.GetPurchaseInvoiceDetailById(obj);
                result    = objResult.ToJSON();
            }
            catch (Exception ex)
            {
                LoggerFactory.LoggerInstance.LogException(ex);
            }
            finally
            {
                LoggerFactory.LoggerInstance.LogDebug("Response Value : " + result);
            }
            return(result);
        }
예제 #2
0
        public string UpdatePurchaseInvoice(clspurchaseInvoice obj)
        {
            string result = "";

            try
            {
                purchase_invoice_Entity objEntities = new purchase_invoice_Entity();
                // SP_customers_SelectOneResult CustomerData = new SP_customers_SelectOneResult();
                int objResult;
                objResult = objEntities.UpdatePurchaseInvoice(obj);
                result    = objResult.ToJSON();
            }
            catch (Exception ex)
            {
                LoggerFactory.LoggerInstance.LogException(ex);
            }
            finally
            {
                LoggerFactory.LoggerInstance.LogDebug("Response Value : " + result);
            }
            return(result);
        }