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); }
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); }