You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
835 B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model
{
public class Admin : User
{
public int Permission
{
get { return permission; }
private set
{
permission = value;
}
}
private int permission;
public Admin(string username, string biographie, string email, string password, int perm)
: base(username, biographie, email, password)
{
Permission = perm;
}
public void DelCom (Game game, Review review)
{
if (permission >= 1)
{
game.RemoveReview(review);
}
return;
}
}
}