public static void InsertLog(string userID, string workType) { KeyWorklogEntity entity = new KeyWorklogEntity { USER_ID = userID, WORK_TYPE = workType, CREATE_TIME = DateTime.Now }; KeyWorklogDal dal = new KeyWorklogDal(); dal.Insert(entity); }
public static void InsertLog(KeyWorklogEntity entity) { KeyWorklogDal dal = new KeyWorklogDal(); dal.Insert(entity); }