Exemple #1
0
        public async Task <eSWIS.Logic.Profiles.Container.Company> GetCompany(string id)
        {
            eSWIS.Logic.Profiles.Container.Company list = new eSWIS.Logic.Profiles.Container.Company();
            try
            {
                var repo = new Plexform.Logic.FooLogic();

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

            return(ObjectMapper.Map <eSWIS.Logic.Profiles.Container.Company>(list));
        }
Exemple #2
0
        public async Task <ListResultContainer <eSWIS.Logic.UsrProfile.Container.USRPROFILE> > GetAllUserProfile()
        {
            List <eSWIS.Logic.UsrProfile.Container.USRPROFILE> list = new List <eSWIS.Logic.UsrProfile.Container.USRPROFILE>();

            try
            {
                var repo = new Plexform.Logic.FooLogic();

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

            return(new ListResultContainer <eSWIS.Logic.UsrProfile.Container.USRPROFILE>(
                       ObjectMapper.Map <List <eSWIS.Logic.UsrProfile.Container.USRPROFILE> >(list),
                       list.Count
                       ));
        }
Exemple #3
0
        public async Task <ListResultContainer <eSWIS.Logic.CodeMaster.Container.Unit> > GetAllUnit()
        {
            List <eSWIS.Logic.CodeMaster.Container.Unit> list = new List <eSWIS.Logic.CodeMaster.Container.Unit>();

            try
            {
                var repo = new Plexform.Logic.FooLogic();

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

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