Exemple #1
0
        public bool SaveUserInRoleDetails(UserInRoleDto newDetails)
        {
            this.webpages_UsersInRoles = newDetails.DtoToEntity();
            if (this._webpages_UsersInRoles.Insert(this.webpages_UsersInRoles).IsNull())
            {
                return(false);
            }

            return(true);
        }
Exemple #2
0
        public static IOBalanceDBV2Entity.webpages_UsersInRoles DtoToEntity(this UserInRoleDto dto)
        {
            IOBalanceDBV2Entity.webpages_UsersInRoles entity = null;

            if (!dto.IsNull())
            {
                entity = new IOBalanceDBV2Entity.webpages_UsersInRoles
                {
                    RoleId = dto.RoleId,
                    UserId = dto.UserId
                };
            }

            return(entity);
        }
Exemple #3
0
 public AccountService(IIOBalanceV2Repository <webpages_UsersInRoles> webpages_UsersInRoles)
 {
     this._webpages_UsersInRoles = webpages_UsersInRoles;
     this.webpages_UsersInRoles  = new IOBalanceDBV2Entity.webpages_UsersInRoles();
 }