[HttpGet("{id}")] // GETBYID public ActionResult <Vacation> Get(int id) { try { return(Ok(_service.Get(id))); } catch (Exception e) { return(BadRequest(e.Message)); } }
public VacationDto Get(string id) { return(EmitCore.Convert <Vacation, VacationDto>(vacationService.Get(id))); }
public Vacation Get(string id) { return(vacationService.Get(id)); }