Exemplo n.º 1
0
 public static DataSources.dsData.EmployeeRow GetEmployeeRow(int EmployeeId, DataSources.dsData.EmployeeDataTable tbl)
 {
     DataSources.dsData.EmployeeRow row = tbl.FindByEmployeeId(EmployeeId);
     if (row == null)
     {
         DataSources.dsData.EmployeeRow NewRow = tbl.NewEmployeeRow();
         CreateDefaultEmployee(ref NewRow);
         return NewRow;
     }
     else
         return row;
 }