void ActionGiveManyAwards() { ConsoleKey Key; int[] AwardId; int UserId; AwardWeilder WeilderInfo; do { AwardId = TextGetManyAwardId(); UserId = TextGetUserId(); try { foreach (var item in AwardId) { WeilderInfo = new AwardWeilder(); WeilderInfo.UserId = UserId; WeilderInfo.AwardId = item; WeilderInfo.Id = WeilderInfo.GetNewId(BLL.GetAllAwardWeilders()); BLL.AddAwardWeilder(WeilderInfo); } Console.WriteLine("Succsessfully added"); } catch (ArgumentException e) { Console.WriteLine(e.Message); } finally { Console.WriteLine("Try again? (Press <<Y>>)"); Key = Console.ReadKey().Key; } } while (Key != ConsoleKey.Escape); }