예제 #1
0
        public string GetItemPriceByItemId(clsitemPrice obj)
        {
            string result = "";

            try
            {
                item_price_Entity objEntities = new item_price_Entity();
                List <SP_item_price_SelectByItemIdResult> objResult = new List <SP_item_price_SelectByItemIdResult>();
                objResult = objEntities.GetItemPriceByItemId(obj);
                result    = objResult.ToJSON();
            }
            catch (Exception ex)
            {
                LoggerFactory.LoggerInstance.LogException(ex);
            }
            finally
            {
                LoggerFactory.LoggerInstance.LogDebug("Response Value : " + result);
            }
            return(result);
        }
예제 #2
0
        public string DeleteItemPriceByItemId(clsitemPrice obj)
        {
            string result = "";

            try
            {
                item_price_Entity objEntities = new item_price_Entity();
                long objdeleteResult;
                objdeleteResult = objEntities.DeleteItemPriceByItemId(obj);
                result          = objdeleteResult.ToJSON();
            }
            catch (Exception ex)
            {
                LoggerFactory.LoggerInstance.LogException(ex);
            }
            finally
            {
                LoggerFactory.LoggerInstance.LogDebug("Response Value : " + result);
            }
            return(result);
        }
예제 #3
0
        public string InsertItemPrice(clsitemPrice obj)
        {
            string result = "";

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