public ActionResult Deletar(int?Id) { int IdAux = 0; if (Id.HasValue == true) { IdAux = Id.Value; } if (IdAux == 0) { messageQueue.Add(Application.Resource.Sigim.ErrorMessages.RegistroNaoRecuperado, TypeMessage.Error); } else { perfilAppService.Deletar(Id); } return(PartialView("_NotificationMessagesPartial")); }