public async Task <ActionResult> Edit(DocumentoViewModel model) { if (ModelState.IsValid) { await _service.Atualizar(_mapper.Map <Documento>(model)); return(RedirectToAction("Index")); } return(View(model)); }
public async Task <ActionResult> Edit(DocumentoViewModel model) { if (ModelState.IsValid) { await _service.Atualizar(_mapper.Map <Documento>(model)); return(RedirectToAction("Index")); } return(View(model)); }