public IActionResult Persistir([FromBody] PerfilVM perfilVM) { try { var perfil = Mapper.Map <Perfil>(perfilVM); _perfilService.PersistirPerfil(perfil); return(Ok(new { dados = "", notifications = _notificationHandler.Mensagens.Any() ? _notificationHandler.Mensagens.Select(x => x._value) : new List <string>(), success = !_notificationHandler.Mensagens.Any() })); } catch (Exception ex) { return(BadRequest(ex)); } }