public async Task <ActionResult <Permit> > Get(int id) { var result = await _service.GetById(id); return(Ok(result)); }