Example #1
0
        public async Task <eSWIS.Logic.UserSecurity.Container.UserGroup> GetGetUserGroup(string GroupCode)
        {
            eSWIS.Logic.UserSecurity.Container.UserGroup list = new eSWIS.Logic.UserSecurity.Container.UserGroup();
            try
            {
                var repo = new Plexform.Logic.UserGroupLogic();

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

            return(ObjectMapper.Map <eSWIS.Logic.UserSecurity.Container.UserGroup>(list));
        }
Example #2
0
        public async Task <bool> Delete([FromBody] eSWIS.Logic.UserSecurity.Container.UserGroup input)
        {
            bool res = false;

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

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

            return(ObjectMapper.Map <bool>(res));
        }