public void ClearData <T>(CurrentOrder <T> data) where T : IItem { data.Order.Clear(); data.TotalSum = 0; }