示例#1
0
        public string GetSuppliersDetailBYId(clssuppliers obj)
        {
            string result = "";

            try
            {
                suppliers_Entity objEntities = new suppliers_Entity();
                List <SP_suppliers_SelectOneResult> objResult = new List <SP_suppliers_SelectOneResult>();
                objResult = objEntities.GetSuppliersDetailBYId(obj);
                result    = objResult.ToJSON();
            }
            catch (Exception ex)
            {
                LoggerFactory.LoggerInstance.LogException(ex);
            }
            finally
            {
                LoggerFactory.LoggerInstance.LogDebug("Response Value : " + result);
            }
            return(result);
        }
示例#2
0
        public string UpdateSupplier(clssuppliers obj)
        {
            string result = "";

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