public void OnPostAddColor()
        {
            bool  Confirmation    = false;
            _3DPS RequestDirector = new _3DPS();

            //AvailableColors = RequestDirector.GetColors();
            AllColors = new List <Color>();
            AllColors = RequestDirector.GetAllColors();
            // add color to db
            _3DPrintingService.Domain.Color color = new Color();
            color.ColorName = ColorName;
            color.Available = false;

            if (AllColors.Contains(color))
            {
                Confirmation = RequestDirector.SetAvailable(ColorName);
            }
            else
            {
                Confirmation = RequestDirector.AddColor(ColorName);
            }

            // update status message
            if (Confirmation)
            {
                Message = "Added " + ColorName + " successfully.";
            }
            else
            {
                Message = "Failed to add color.";
            }

            AllColors = RequestDirector.GetAllColors();
        }
        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();
        }
        public void OnGet()
        {
            _3DPS RequestDirector = new _3DPS();

            AllColors = RequestDirector.GetAllColors();
        }