Ejemplo n.º 1
0
        public string GetExpensesDetailById(clsexpenses obj)
        {
            string result = "";

            try
            {
                expenses_Entity objEntities = new expenses_Entity();
                List <SP_expenses_SelectOneResult> objResult = new List <SP_expenses_SelectOneResult>();
                objResult = objEntities.GetExpensesDetailById(obj);
                result    = objResult.ToJSON();
            }
            catch (Exception ex)
            {
                LoggerFactory.LoggerInstance.LogException(ex);
            }
            finally
            {
                LoggerFactory.LoggerInstance.LogDebug("Response Value : " + result);
            }
            return(result);
        }
Ejemplo n.º 2
0
        public string UpdateExpenses(clsexpenses obj)
        {
            string result = "";

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