public UserService AddAdmin(IUser newAdmin) { RestParameters urlParameters = new RestParameters() .AddParameters(RestParametersKeys.Token, user.Token) .AddParameters(RestParametersKeys.Name, newAdmin.Name) .AddParameters(RestParametersKeys.Password, newAdmin.Password) .AddParameters(RestParametersKeys.Rights, ParamTrue); SimpleEntity simpleEntity = userResource .HttpPostAsObject(urlParameters, null, null); CheckService(!simpleEntity.Equals(true), "Admin " + newAdmin.ToString() + "was not Added."); return(this); }