public async Task <GoodGame> PostGoodGame(GoodGame item) { _context.GoodGames.Add(item); await _context.SaveChangesAsync(); return(item); }
public async Task <int> PutGoodGameItem(int Id, [FromBody] GoodGame item) { item.Id = Id; return(await GoodGames.PutGoodGame(item)); }
public async Task <int> PutGoodGame(GoodGame item) { _context.Entry(item).State = EntityState.Modified; return(await _context.SaveChangesAsync()); }
public async Task <IActionResult> Postcountryitem(GoodGame item) { return(ApiOk(await GoodGames.PostGoodGame(item))); }