public static int GetNewStaffId() { return(Staffs .Select(s => s.Id) .OrderByDescending(s => s) .FirstOrDefault() + 1); }