public string getCustomerBranchById(customerBranchRequest obj) { string result = ""; try { customers_branch_Entity objEntities = new customers_branch_Entity(); List <SP_customers_branch_SelectOneResult> CustomerBranchData = new List <SP_customers_branch_SelectOneResult>(); CustomerBranchData = objEntities.GetCustomerBranchDetailById(obj); result = CustomerBranchData.ToJSON(); } catch (Exception ex) { LoggerFactory.LoggerInstance.LogException(ex); } finally { LoggerFactory.LoggerInstance.LogDebug("Response Value : " + result); } return(result); }
public string UpdateCustomerBranch(customerBranchRequest obj) { string result = ""; try { customers_branch_Entity objEntities = new customers_branch_Entity(); // SP_customers_SelectOneResult CustomerData = new SP_customers_SelectOneResult(); int CustomerData; CustomerData = objEntities.UpdateCustomerBranch(obj); result = CustomerData.ToJSON(); } catch (Exception ex) { LoggerFactory.LoggerInstance.LogException(ex); } finally { LoggerFactory.LoggerInstance.LogDebug("Response Value : " + result); } return(result); }