private static bool validateContactData(Dictionary <string, string> data) { if (data["name"] != "" && data["email"] != "" && data["contact"] != "" && AppUtilities.IsEmailValid(data["email"])) { return(true); } else { return(false); } }
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); } }