public async Task <IActionResult> EmployeeLeaveDetails(int EmployeeLeaveId) { try { var response = await _service.GetEmployeeLeave(EmployeeLeaveId); if (response != null) { return(Ok(response)); } return(StatusCode(StatusCodes.Status204NoContent)); } catch (Exception ex) { throw ex; } }