static public void CreateAward() { byte[] image = { 0 }; if (usersandawardsLogic.AddAward(EnterTitleAward(), image)) { Console.WriteLine("Award create successfull!"); } else { Console.WriteLine("Award don't create"); } Console.WriteLine("Please press any key for continue"); Console.ReadKey(); }
static public bool CreateAward(string Title, string image) { if (CheckTitleAward(Title)) { if (!CheckImageAward(image)) { image = Path + @"Pages\Image\default.png"; } if (usersandawardsLogic.AddAward(Title, ImageToByte(image))) { return(true); } else { return(false); } } return(false); }