public ActionResult Edit(MarcaViewModel marca) { if (ModelState.IsValid) { var marcaDomain = _mapper.Map <MarcaViewModel, Marca>(marca); _marcaApp.Update(marcaDomain); return(RedirectToAction("Index")); } return(View(marca)); }
public IActionResult Update(Guid id, MarcaUpdateViewModel viewmodel) { return(ResponseOk(_marcaAppService.Update(id, viewmodel))); }