Ejemplo n.º 1
0
 private async Task <MovieAdviser.DataAccess.Entities.Cartoon> Get(ICartoonIdentity cartoon)
 {
     if (cartoon == null)
     {
         throw new ArgumentNullException(nameof(cartoon));
     }
     return(await this.Context.Cartoon.Include(x => x.Genre).FirstOrDefaultAsync(x => x.Id == cartoon.Id));
 }
Ejemplo n.º 2
0
        public async Task <Cartoon> GetAsync(ICartoonIdentity iCartoonIdentity)
        {
            var result = await this.Get(iCartoonIdentity);

            return(this.Mapper.Map <Cartoon>(result));
        }
Ejemplo n.º 3
0
 public Task <Cartoon> GetAsync(ICartoonIdentity iCartoonIdentity)
 {
     return(this.CartoonDataAccess.GetAsync(iCartoonIdentity));
 }