public void Delete(int _id, string _userName) { try { LogAction entity = new LogAction(); entity.action = "Thêm LienKetWeb: <a href=\"" + _id + "\" target=\"_blank\">" + _id + "</a>"; entity.browser = ""; entity.ipAddress = ""; entity.userAction = _userName; entity.createTime = DateTime.Now; _RepositoryLogAction.Add(entity); _Repository.Delete(_id); } catch { } }
public LienKetWeb Delete(int id) { return _Repository.Delete(id); }