public MaterialViewModel Adicionar(MaterialViewModel materialViewModel) { var material = _mapper.Map <Material>(materialViewModel); _materialService.Adicionar(material); Commit(); return(materialViewModel); }