Exemplo n.º 1
0
 public static void EditAgreement(Agreement AgreementToEdit)
 {
     DataAccessLayer.UpdateAgreement(AgreementToEdit);
 }
Exemplo n.º 2
0
        public static Agreement CheckAgreement(Agreement AgreementToCheck)
        {
            Agreement existAgreement = DataAccessLayer.AgreementCheck(AgreementToCheck);

            return(existAgreement);
        }
Exemplo n.º 3
0
 public static void DeleteAgreement(Agreement selectedAgreement)
 {
     selectedAgreement.Status = false;
     DataAccessLayer.AgreementDelete(selectedAgreement);
 }
Exemplo n.º 4
0
 public static void CreateAgreement(Agreement agree)
 {
     DataAccessLayer.InsertAgreement(agree);
 }
Exemplo n.º 5
0
 // Converts date and time
 private static void SqlFormattedDateTime(Agreement agree)
 {
     agree.ExpirationDate.Date.ToString("yyyy-MM-dd HH:mm:ss");
 }
Exemplo n.º 6
0
 public static void CreateAgreementTest(Agreement agreement)
 {
     agreement.Status = true;
     CreateAgreement(agreement);
 }