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

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