Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
public IActionResult Create(MaterialCreationViewModel model) { if (ModelState.IsValid) { _workshopRepository.CreateMaterial(model.Material); return(RedirectToAction(nameof(Index))); } model.Suppliers = _workshopRepository.GetAllSuppliers(); return(View(nameof(Create), model)); }