コード例 #1
0
        // GET: Companies/Details/5
        public async Task <IActionResult> Details(long?id)
        {
            var company = await _companiesService.GetAsync(id);

            if (company == null)
            {
                return(NotFound());
            }
            return(View(company));
        }
コード例 #2
0
 public async Task <IActionResult> Get([FromQuery] FilterBase filterBase)
 {
     return(Ok(await _service.GetAsync(filterBase)));
 }
コード例 #3
0
 public async Task <IActionResult> Get(Guid id)
 => Single(await _companiesService.GetAsync(id));