示例#1
0
        public IActionResult Add(Interfaces.Presentacion.Entities.Factory factory)
        {
            FactoryCommands factoryCommands = new FactoryCommands();
            IFactoryCommand factoryCommand  = factoryCommands.CreateFactoryCommand(this.DatabaseEngine);

            factoryCommand.CreateFactory(factory);

            return(RedirectToAction("Index", "Factory"));
        }
示例#2
0
 public IActionResult Create()
 {
     Interfaces.Presentacion.Entities.Factory factory = new Interfaces.Presentacion.Entities.Factory();
     return(View(factory));
 }