コード例 #1
0
        public async Task <IActionResult> Get([FromRoute] Guid id)
        {
            var result = await appService.Get(id);

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

            return(Ok(result));
        }
コード例 #2
0
 public async Task <CompanyViewModel> Get(Guid id)
 {
     return(await appService.Get(id));
 }
コード例 #3
0
 public async Task <IActionResult> Get([FromRoute] Guid id)
 {
     return(Ok(await appService.Get(id)));
 }