Esempio n. 1
0
        public string getCustomerByContact(customerRequest obj)
        {
            string result = "";

            try
            {
                customers_Entity objEntities = new customers_Entity();
                List <SP_customers_SelectOne_ContactResult> CustomerData = new List <SP_customers_SelectOne_ContactResult>();
                CustomerData = objEntities.getCustomerByContact(obj);
                result       = CustomerData.ToJSON();
            }
            catch (Exception ex)
            {
                LoggerFactory.LoggerInstance.LogException(ex);
            }
            finally
            {
                LoggerFactory.LoggerInstance.LogDebug("Response Value : " + result);
            }
            return(result);
        }
Esempio n. 2
0
        public string InsertCustomer(customerRequest obj)
        {
            string result = "";

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