public IActionResult GetSickLeave(int sickLeaveId) { var sickLeave = _repo.GetSickLeave(sickLeaveId); if (sickLeave == null) { return(NotFound()); } return(Ok(ModelsMapping.GetSickLeaveDto(sickLeave))); }
public IActionResult GetSickLeave(int sickLeaveId) { var sickLeave = _repo.GetSickLeave(sickLeaveId); if (sickLeave == null) { return(NotFound()); } return(Ok(ModelsMapping.GetSickLeaveDto(sickLeave))); }