public static DataTable UpdateContractor(string userRole, string userLogin, Contractor contractor)
 {
     IPersonData contractorData = new PersonData();
     contractor.ContractorIsActive = false;
     DataTable tb = contractorData.UpdatePerson(userRole, "Contractor", userLogin, contractor.Entity(contractor));
     return tb;
 }
 public static DataTable UpdateClient(string userRole, string userLogin, Client client)
 {
     IPersonData clientData = new PersonData();
     DataTable tb = clientData.UpdatePerson(userRole, "Client", userLogin, client.Entity(client));
     return tb;
 }
 public static DataTable ListContractor(string userRole, string userLogin)
 {
     IPersonData contractordata = new PersonData();
     DataTable tb = contractordata.ListPerson(userRole, "Contractor", userLogin);
     return tb;
 }
 public static DataTable ListClient(string userRole, string userLogin)
 {
     IPersonData clientdata = new PersonData();
     DataTable tb = clientdata.ListPerson(userRole, "Client", userLogin);
     return tb;
 }
 public static DataTable InsertClient(string userRole, string userLogin, Client client)
 {
     IPersonData clientData = new PersonData();
     client.ClientIsActive = false;
     DataTable tb = clientData.InsertPerson(userRole, "Client", userLogin, client.Entity(client));
     return tb;
 }
 public static DataTable ApproveClient(string userRole, string userLogin, Client client)
 {
     IPersonData clientData = new PersonData();
     client.ClientIsActive = true;
     DataTable tb = clientData.ApprovePerson(userRole, "Client", userLogin, client.Entity(client));
     return tb;
 }
 public static DataTable InsertCoordinator(string userRole, string userLogin, Coordinator coordinator)
 {
     IPersonData coordinatorData = new PersonData();
     coordinator.CoordinatorIsActive = false;
     DataTable tb = coordinatorData.InsertPerson(userRole, "Coordinator", userLogin, coordinator.Entity(coordinator));
     return tb;
 }
 public static DataTable ApproveCoordinator(string userRole, string userLogin, Coordinator coordinator)
 {
     IPersonData coordinatorData = new PersonData();
     coordinator.CoordinatorIsActive = true;
     DataTable tb = coordinatorData.ApprovePerson(userRole, "Coordinator", userLogin, coordinator.Entity(coordinator));
     return tb;
 }