Esempio n. 1
0
 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));
 }
Esempio n. 2
0
        public async Task <Critic> GetAsync(ICriticIdentity criticId)
        {
            var result = await this.Get(criticId);

            return(this.Mapper.Map <Critic>(result));
        }
Esempio n. 3
0
 public Task <Critic> GetAsync(ICriticIdentity podcast)
 {
     return(this.CriticDataAccess.GetAsync(podcast));
 }