Example #1
0
        private async Task <Street> Get(IStreetIdentity street)
        {
            if (street == null)
            {
                throw new ArgumentNullException(nameof(street));
            }

            return(await this.Context.Street.FirstOrDefaultAsync(x => x.Id == street.Id));
        }
 public Task<Street> GetAsync(IStreetIdentity id)
 {
     return this.StreetDAL.GetAsync(id);
 }
Example #3
0
        public async Task <MyWebApp.Domain.Street> GetAsync(IStreetIdentity street)
        {
            var result = await this.Get(street);

            return(this.Mapper.Map <MyWebApp.Domain.Street>(result));
        }