Example #1
0
        public async Task DeleteGame(int ID)
        {
            var entity = await GameDetail.GetByIdAsync(ID);

            await GameDetail.DeleteAsync(mapper.Map <Model.DTO.Game>(entity));
        }
Example #2
0
 public async Task <Model.ViewModel.Game> GetGameById(int Id)
 {
     return(mapper.Map <Model.ViewModel.Game>(await GameDetail.GetByIdAsync(Id)));
 }