public async Task <ActionResult <dynamic> > Get(int id) { var entity = await _service.FindById(id); if (entity == null) { return(new NotFoundResult()); } return(Ok(entity)); }