public async Task <ActionResult> Edit(DocumentoBaixaViewModel model)
        {
            if (ModelState.IsValid)
            {
                await _service.Atualizar(_mapper.Map <DocumentoBaixa>(model));

                return(RedirectToAction("Index"));
            }
            return(View(model));
        }
 public async Task <ActionResult> Create(DocumentoBaixaViewModel model)
 {
     try
     {
         if (ModelState.IsValid)
         {
             await _service.Adicionar(_mapper.Map <DocumentoBaixa>(model));
         }
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }