public void Update(User entity)
        {
            dynamic updatedUser = new ExpandoObject(); 
            updatedUser.Name = entity.Username;
            updatedUser.Password = entity.Password;

            this._membershipTable.Update(updatedUser, entity.Id);

        }
        public void Insert(User entity)
        {
            dynamic newUser = new ExpandoObject();

            newUser.Name = entity.Username;
            newUser.Password = entity.Password;
            newUser.PasswordSalt = "";
            this._membershipTable.Insert(newUser);

        }
 public void SaveOrUpdate(User entity)  
 {
     _repository.Insert(entity);
 }