Beispiel #1
0
 private async Task <Media.DataAccess.Entities.Rating> Get(IRatingIdentity rating)
 {
     if (rating == null)
     {
         throw new ArgumentNullException(nameof(rating));
     }
     return(await this.Context.Rating.FirstOrDefaultAsync(x => x.Id == rating.Id));
 }
Beispiel #2
0
        public async Task <Rating> GetAsync(IRatingIdentity rating)
        {
            var result = await this.Get(rating);

            return(this.Mapper.Map <Rating>(result));
        }
Beispiel #3
0
 public Task <Rating> GetAsync(IRatingIdentity rating)
 {
     return(this.RatingDataAccess.GetAsync(rating));
 }