Пример #1
0
        public string GetItemDetailById(clsitems obj)
        {
            string result = "";

            try
            {
                items_Entity objEntities = new items_Entity();
                List <SP_items_SelectOneResult> objResult = new List <SP_items_SelectOneResult>();
                objResult = objEntities.GetItemDetailById(obj);
                result    = objResult.ToJSON();
            }
            catch (Exception ex)
            {
                LoggerFactory.LoggerInstance.LogException(ex);
            }
            finally
            {
                LoggerFactory.LoggerInstance.LogDebug("Response Value : " + result);
            }
            return(result);
        }
Пример #2
0
        public string InsertItems(clsitems obj)
        {
            string result = "";

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