// 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)); }
public async Task <IActionResult> Get([FromQuery] FilterBase filterBase) { return(Ok(await _service.GetAsync(filterBase))); }
public async Task <IActionResult> Get(Guid id) => Single(await _companiesService.GetAsync(id));