Commit 3b02b0fe authored by Clément's avatar Clément
Browse files

Few Details

parent 7dc797d8
......@@ -7,7 +7,7 @@ namespace MVC.Models
{
public class WarModels
{
public int ID;
public int ID { get; set; }
public String Name { get; set; }
public WarModels()
{
......
......@@ -38,7 +38,7 @@ namespace WebApiGOT.Controllers
{
House challenger1 = new House(f.Challenger1.ID, f.Challenger1.Name, f.Challenger1.NbUnits);
House challenger2 = new House(f.Challenger2.ID, f.Challenger2.Name, f.Challenger2.NbUnits);
War war = new War(f.War.Name);
War war = new War(f.War.ID,f.War.Name);
Fight fight = new Fight(f.Name, challenger1, challenger2, war);
BusinessLayer.ThronesTournamentManager busi = new BusinessLayer.ThronesTournamentManager();
busi.addFight(fight);
......
......@@ -8,7 +8,7 @@ namespace WebApiGOT.Models
{
public class WarDTO
{
public int ID;
public int ID { get; set; }
public String Name { get; set; }
public WarDTO()
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment