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