public void TrackingTime(ActivityType activity, User user, IUserService <User> userService) { Console.Clear(); switch (activity) { case ActivityType.Reading: var reading = new Reading(); reading.TrackTime(); Console.WriteLine("Please enter how many pages you've read and what kind Of book you were reading:"); Console.Write("Pages: "); reading.Pages = ValidationHelpers.ParseNumber(Console.ReadLine(), int.MaxValue); reading.BookType = (BookType)menus.ShowBookTypes(); reading.Id = user.Id; user.ListOfActivities.Add(reading); userService.AddActivity(user, reading, user.ReadingActivities); MessageHelepers.Message("Activity is succesfully tracked!", ConsoleColor.Green); break; case ActivityType.Exercising: var exercising = new Exercising(); exercising.TrackTime(); Console.WriteLine("Please enter what kind of workout did you do"); exercising.ExercisingType = (ExercisingType)menus.ShowExercisingTypes(); user.ListOfActivities.Add(exercising); userService.AddActivity(user, exercising, user.ExercisingActivities); MessageHelepers.Message("Activity is succesfully tracked!", ConsoleColor.Green); break; case ActivityType.Working: var working = new Working(); working.TrackTime(); Console.WriteLine("Where were you working from?"); working.WorkingFrom = (WorkingFrom)menus.ShowWorkingOptions(); user.ListOfActivities.Add(working); userService.AddActivity(user, working, user.WorkingActivities); MessageHelepers.Message("Activity is succesfully tracked!", ConsoleColor.Green); break; case ActivityType.OtherHobbies: var otherHobbies = new OtherHobbies(); otherHobbies.TrackTime(); Console.WriteLine("Please enter the name of the hobby"); otherHobbies.Hobby = Console.ReadLine(); user.ListOfActivities.Add(otherHobbies); userService.AddActivity(user, otherHobbies, user.OtherHobbiesActivities); MessageHelepers.Message("Activity is succesfully tracked!", ConsoleColor.Green); break; default: break; } }