public async Task <int> AddGame(Model.ViewModel.Game game) { await GameDetail.AddAsync(mapper.Map <Model.DTO.Game>(game)); var entity = await GameDetail.GetItemsAsync(a => a.GameName == game.GameName); return(entity.FirstOrDefault().Id); }
public async Task UpdateGame(Model.ViewModel.Game game) { await GameDetail.UpdateAsync(mapper.Map <Model.DTO.Game>(game)); }