/// <summary> /// /// </summary> public void Delete(int id) { var user = users.FirstOrDefault(u => u.Id == id); if (user != null) { con.Delete(user); } }