public static void Info(string message) { var db = new ssmDataContext(); var logActivity = new logActivity { action = message, informAdmin = false }; db.logActivities.InsertOnSubmit(logActivity); db.SubmitChanges(); }
public static void Warning(string message, int sellerId) { var db = new ssmDataContext(); var logActivity = new logActivity { action = message, SellerId = sellerId, informAdmin = true, date = DateTime.Now }; db.logActivities.InsertOnSubmit(logActivity); db.SubmitChanges(); }
partial void DeletelogActivity(logActivity instance);
partial void UpdatelogActivity(logActivity instance);
partial void InsertlogActivity(logActivity instance);