Esempio n. 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"));
        }
Esempio n. 2
0
 public IActionResult Create()
 {
     Interfaces.Presentacion.Entities.Factory factory = new Interfaces.Presentacion.Entities.Factory();
     return(View(factory));
 }