public static Boolean track(String model, String action, String ref_id) { ActivityLogModel log = new ActivityLogModel(); log.model = model; log.action = action; log.date = DateTime.Now.ToString("yyyy-MM-dd"); log.ref_id = ref_id; log.department_id = DepartmentSettings.DepartmentId; dynamic status = log.create(log); return(status != null); }
public static void remove(string responseObject) { try { JObject json = JObject.Parse(responseObject); var ids = json.GetValue("applied_activies").ToString(); if (ids != "" && ids != null) { ActivityLogModel act = new ActivityLogModel(); act.delete(act, "id IN (" + ids + ")"); } } catch (Exception ex) { } }