public bool Delete(long id) { bool rc = false; try { if (id > 0) { rc = db.Deleteable <LiveChatRoomMember>().Where(it => it.ID == id).ExecuteCommand() > 0; } } catch (Exception ex) { log.Error("Delete", ex); } return(rc); }
public bool Delete(Advertisement model) { var i = db.Deleteable(model).ExecuteCommand(); return(i > 0); }