コード例 #1
0
        public async Task <eSWIS.Logic.Profiles.Container.Company> Get(string BizRegID)
        {
            eSWIS.Logic.Profiles.Container.Company list = new eSWIS.Logic.Profiles.Container.Company();
            try
            {
                var repo = new Logic.CustomerLogic();

                list = await repo.GetCustomer(BizRegID);
            }
            catch (Exception ex)
            {
                var temp = ex.ToString();
            }

            return(ObjectMapper.Map <eSWIS.Logic.Profiles.Container.Company>(list));
        }
コード例 #2
0
        public async Task <ListResultContainer <eSWIS.Logic.Profiles.Container.Company> > GetAll(int limit = 50)
        {
            List <eSWIS.Logic.Profiles.Container.Company> list = new List <eSWIS.Logic.Profiles.Container.Company>();

            try
            {
                var repo = new Logic.CustomerLogic();

                list = await repo.GetAllCustomer(limit);
            }
            catch (Exception ex)
            {
                var temp = ex.ToString();
            }

            return(new ListResultContainer <eSWIS.Logic.Profiles.Container.Company>(
                       ObjectMapper.Map <List <eSWIS.Logic.Profiles.Container.Company> >(list),
                       list.Count
                       ));
        }