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