/// <summary> /// 增加一条数据 /// </summary> public int Add(int user_id, string user_name, string remark) { Model.user_login_log model = new Model.user_login_log(); model.user_id = user_id; model.user_name = user_name; model.remark = remark; model.login_ip = DTRequest.GetIP(); model.login_time = DateTime.Now; return(dal.Add(model)); }
/// <summary> /// 增加一条数据 /// </summary> public int Add(int user_id, string user_name, string remark, string getip) { Model.user_login_log model = new Model.user_login_log(); model.user_id = user_id; model.user_name = user_name; model.remark = remark; model.login_ip = getip; model.login_time = DateTime.Now; return(dal.Add(model)); }
/// <summary> /// 增加一条数据 /// </summary> public int Add(Model.user_login_log model) { return(dal.Add(model)); }