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

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

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