Exemple #1
0
 private static void Create(string parameters)
 {
     object[] newRecordData = UserQuestioning();
     fileCabinetService.CreateRecord(new ObjectParametrsForCreateAndEditRecord(
                                         newRecordData[0].ToString(),
                                         newRecordData[1].ToString(),
                                         (DateTime)newRecordData[2],
                                         (short)newRecordData[3],
                                         (decimal)newRecordData[4],
                                         (char)newRecordData[5]));
     Console.WriteLine($"Record #{fileCabinetService.GetStat()} is created.");
 }
Exemple #2
0
        private static void Stat(string parameters)
        {
            var recordsCount = fileCabinetService.GetStat();

            Console.WriteLine($"{recordsCount} record(s).");
        }