public async Task DeleteGame(int ID) { var entity = await GameDetail.GetByIdAsync(ID); await GameDetail.DeleteAsync(mapper.Map <Model.DTO.Game>(entity)); }
public async Task <Model.ViewModel.Game> GetGameById(int Id) { return(mapper.Map <Model.ViewModel.Game>(await GameDetail.GetByIdAsync(Id))); }