Exemple #1
0
        public void OnGet()
        {
            _3DPS RequestDirector = new _3DPS();

            FileList        = RequestDirector.GetAppFiles();
            AvailableColors = RequestDirector.GetColors();
        }
        public void OnPostRemoveColor()
        {
            bool  Confirmation    = false;
            _3DPS RequestDirector = new _3DPS();

            // remove color from DB
            Confirmation = RequestDirector.RemoveColor(ColorNameRemove);
            // remove color from LIST
            AvailableColors = RequestDirector.GetColors();
            // update status message
            if (Confirmation)
            {
                Message2 = "Removed " + ColorName + " successfully.";
            }
            else
            {
                Message2 = "Failed to remove color.";
            }

            AllColors = RequestDirector.GetAllColors();
        }