public static void RecordPartnerCallDelete(Guid userID, Guid partnerCallID, string reason, int numberOfPeople) { string message = String.Format("{0} deleted partnerCall[{1}] beacuse {2}, had [{3}] replies", UsersEmail, partnerCallID, reason, numberOfPeople); da.Insert(new LogEvent(userID, CFLogEventType.PartnerCallDelete, message)); MailMan.SendAppEventEmail(CFLogEventType.PartnerCallDelete, message, UsersEmail, userID, "*****@*****.**"); }
public static void RecordDeleteAccount(Guid userID, string fullName, string emailAddress) { string message = string.Format("{0}[{1}] deleted their account", fullName, emailAddress, userID); da.Insert(new LogEvent(userID, CFLogEventType.DeleteAccount, message)); foreach (string email in AdminsToRecieveRegistrationNotifications) { MailMan.SendAppEventEmail(CFLogEventType.DeleteAccount, message, emailAddress, userID, email); } }
public static void RecordRegistration(Guid userID, string emailAddress) { string message = string.Format("{0} registered, profile at http://cf3.climbfind.com/climber-profile/{1}", emailAddress, userID); da.Insert(new LogEvent(userID, CFLogEventType.Registration, message)); foreach (string email in AdminsToRecieveRegistrationNotifications) { MailMan.SendAppEventEmail(CFLogEventType.Registration, message, emailAddress, userID, email); } }
public static void RecordModerateDeleteCrag(Guid userID, string cragName, string cragUrl) { string message = string.Format("Deleted crag {1} <a href='http://cf3.climbfind.com{2}'>http://cf3.climbfind.com{2}</a>", UsersEmail, cragName, cragUrl); da.Insert(new LogEvent(userID, CFLogEventType.ModerateDeleteCrag, message)); foreach (string email in ModeratorsToRecieveCragNotifications) { MailMan.SendAppEventEmail(CFLogEventType.ModerateDeleteCrag, message, UsersEmail, userID, email); } }
public static void RecordModerateDeletePlace(Guid userID, string placeName, int countryID, string placeUrl) { string message = string.Format("Deleted place {1}[c{2}] <a href='http://cf3.climbfind.com{3}'>http://cf3.climbfind.com{3}</a>", UsersEmail, placeName, countryID, placeUrl); da.Insert(new LogEvent(userID, CFLogEventType.ModerateDeletePlace, message)); foreach (string email in ModeratorsToRecievePlaceNotifications) { MailMan.SendAppEventEmail(CFLogEventType.ModerateDeletePlace, message, UsersEmail, userID, email); } }