예제 #1
0
        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);
        }
예제 #2
0
 public async Task UpdateGame(Model.ViewModel.Game game)
 {
     await GameDetail.UpdateAsync(mapper.Map <Model.DTO.Game>(game));
 }