Exemplo n.º 1
0
 private void LoadGrid()
 {
     if (_employee.Role == "1")
     {
         HistoryDataGrid.ItemsSource = iLeaveRequestService.GetbyUser(_employee.Id);
     }
     else if (_employee.Role == "2")
     {
         HistoryDataGrid.ItemsSource = iLeaveRequestService.GetByManager();
     }
     else
     {
         HistoryDataGrid.ItemsSource = iLeaveRequestService.Get();
     }
 }