예제 #1
0
 private static bool validateContactData(Dictionary <string, string> data)
 {
     if (data["name"] != "" && data["email"] != "" && data["contact"] != "" && AppUtilities.IsEmailValid(data["email"]))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
예제 #2
0
 private static bool validateMeetingData(Dictionary <string, string> data)
 {
     if (data["name"] != "" && data["email"] != "" && data["subject"] != "" && data["location"] != "" && Convert.ToDateTime(data["date"]).Date > DateTime.Now.Date && AppUtilities.IsEmailValid(data["email"]))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }