Example #1
0
 private static void RemoveUser()
 {
     Console.Write("Enter an Id of user to remove: ");
     input = Console.ReadLine();
     if (int.TryParse(input, out int userId))
     {
         if (usersLogic.Remove(userId))
         {
             Console.WriteLine("User was removed successfully.");
             Console.WriteLine();
         }
         else
         {
             UserRemovingError();
         }
     }
     else
     {
         UserRemovingError();
     }
 }