Exemple #1
0
        public async Task <IActionResult> GetRegion([FromRoute] long id)
        {
            _log.LogDebug($"REST request to get Region : {id}");
            var result = await _applicationDatabaseContext.Regions
                         .Include(region => region.User)
                         .SingleOrDefaultAsync(region => region.Id == id);

            return(ActionResultUtil.WrapOrNotFoundAsDto <RegionDto>(result, _mapper));
        }