コード例 #1
0
        protected override string Change(string input)
        {
            logger.Info($"Attempt to edit Product({input})...");
            string[] parameters = input.Split('|');
            Product  result     = model.Change(int.Parse(parameters[0]),
                                               parameters[1],
                                               int.Parse(parameters[2]),
                                               int.Parse(parameters[3]),
                                               int.Parse(parameters[4]),
                                               int.Parse(parameters[5]));

            logger.Info($"Product({input}) was updated successfully.");
            var table = CreateTable();

            AddRow(table, result);
            return(Globalization.UIGlobalization.ObjectChangeAlert + "\n" + table.ToString());
        }