Example #1
0
 public void CreatePlayer(Players Player)
 {
     ApplicationDbContext Db = new ApplicationDbContext();
     Db.Players.Add(Player);
     Db.SaveChanges();
 }
Example #2
0
 public void UpdatePlayer(int id,Players Players)
 {
     ApplicationDbContext Db = new ApplicationDbContext();
     Db.SaveChanges();
 }
Example #3
0
 public IHttpActionResult Post(Players Players)
 {
     _adapter.CreatePlayer(Players);
     return Ok();
 }