public void Atualizar(ItemViewModel itemViewModel)
 {
     var item = Mapper.Map<ItemViewModel, Item>(itemViewModel);
     BeginTransaction();
     _itemService.Atualizar(item);
     Commit();
 }
        public ActionResult CadastrarItens(ItemViewModel itemViewModel)
        {
            if (ModelState.IsValid)
            {
               _itemAppService.Adicionar(itemViewModel);

                return RedirectToAction("ListaItens");
            }

            return View(itemViewModel);
        }
        public ActionResult Editar(ItemViewModel itemViewModel)
        {
            if (ModelState.IsValid)
            {
               _itemAppService.Atualizar(itemViewModel);

                return RedirectToAction("ListaItens");
            }
            return View(itemViewModel);
        }