Пример #1
0
        public List <CompanyDatumEntity> GetCompanyData()
        {
            var companyData = new CompanyRootObjectEntity();

            try
            {
                companyData = AssignmentProxy.WebGet <CompanyRootObjectEntity>(string.Format("api/MyCompany/GetCompanyData"));
                log.Info("Company data fetched successfully to UI!!");
            }
            catch (Exception ex)
            {
                log.Error("GetCompanyData : Message" + ex.Message + "InnerException" + "" + ex.InnerException + "Source" + ex.Source);
            }
            return(companyData.Data.Data);
        }
        public CompanyRootObjectEntity GetCompanyData()
        {
            var companyData = new CompanyRootObjectEntity();

            try
            {
                companyData = AssignmentProxy.WebGet <CompanyRootObjectEntity>(AssignmentConstants.BASE_SERVICE_URL);
                log.Info("Company data fetched from service successfully!!");
            }
            catch (Exception ex)
            {
                log.Error("GetCompanyData : Message" + ex.Message + "InnerException" + "" + ex.InnerException + "Source" + ex.Source);
            }

            return(companyData);
        }