コード例 #1
0
        public async Task <IHttpActionResult> Get(int id)
        {
            var policy = await _policyService.GetByIdAsync(id);

            if (policy == null)
            {
                return(NotFound());
            }

            return(Ok(MapperBuilder.Build(ConfigType.In)
                      .Map <PolicyDtoCreated>(policy)));
        }