public GroupEvent(Event obj, Group group) { Obj = obj; Group = group; GroupId = group != null ? group.Id : -1; }