void HandleActiveDeaktiveProduct(string cmd, int productId, bool setActive) { try { Product p = _stregsystem.GetProductByID(productId); if (p.GetType() != typeof(SeasonalProduct)) { p.Active = setActive; } _stregsystemUI.DisplayAdminCommandSucced(cmd); } catch (ProductNotFoundException) { _stregsystemUI.DisplayProductNotFound(productId.ToString()); } catch (FormatException) { _stregsystemUI.DisplayGeneralError("Produkt ID er ikke et tal"); } }