private async Task <Media.DataAccess.Entities.Critic> Get(ICriticIdentity criticId) { if (criticId == null) { throw new ArgumentNullException(nameof(criticId)); } return(await this.Context.Critic.Include(x => x.Rating).FirstOrDefaultAsync(x => x.Id == criticId.Id)); }
public async Task <Critic> GetAsync(ICriticIdentity criticId) { var result = await this.Get(criticId); return(this.Mapper.Map <Critic>(result)); }
public Task <Critic> GetAsync(ICriticIdentity podcast) { return(this.CriticDataAccess.GetAsync(podcast)); }