コード例 #1
0
        public async Task <bool> Update(eSWIS.Logic.UsrProfile.Container.USRPROFILE input)
        {
            bool res = false;

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

                res = await repo.Update(input);
            }
            catch (Exception ex)
            {
                var temp = ex.ToString();
            }

            return(ObjectMapper.Map <bool>(res));
        }
コード例 #2
0
        public async Task <bool> Delete(string id)
        {
            bool res = false;

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

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

            return(ObjectMapper.Map <bool>(res));
        }
コード例 #3
0
        public async Task <ListResultContainer <eSWIS.Logic.UsrProfile.Container.USRPROFILE> > GetAllUserProfile(int skipCount = -1, int limit = -1, string orderby = "", string filter = "")
        {
            IList <eSWIS.Logic.UsrProfile.Container.USRPROFILE> res = new List <eSWIS.Logic.UsrProfile.Container.USRPROFILE>();
            int totalRows = 0;

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

                res = await repo.GetAllUserProfileAsync(ref totalRows, skipCount, limit, orderby, filter);
            }
            catch (Exception ex)
            {
                var temp = ex.ToString();
            }
            return(new ListResultContainer <eSWIS.Logic.UsrProfile.Container.USRPROFILE>(
                       ObjectMapper.Map <IList <eSWIS.Logic.UsrProfile.Container.USRPROFILE> >(res),
                       totalRows > 0 ? totalRows : res.Count()
                       ));
        }