public int Create(CreateUserAccountModel domainModel)
        {
            // Create repositories
            var userAccountRepository = new UserAccountRepository();

            // Create the UserAccount
            var userAccountId = userAccountRepository.Insert(domainModel);

            return userAccountId;
        }
        public int Insert(CreateUserAccountModel domainModel)
        {
            // Build up the parameters
            var parameters = new List<SqlParameter>()
            {
                CreateParameter("@Firstname", SqlDbType.VarChar, domainModel.Firstname),
                CreateParameter("@Lastname", SqlDbType.VarChar, domainModel.Lastname),
                CreateParameter("@Username", SqlDbType.VarChar, domainModel.Username),
                CreateParameter("@CachedData", SqlDbType.VarBinary, domainModel.CachedData),
                CreateParameter("@UpdateDate", SqlDbType.DateTime, domainModel.UpdateDate),
            };

            // Run command
            return InsertData("Sp_Insert_UserAccount", parameters);
        }