public IActionResult Create() { try { var Status = _StatusService.FindAll(); var Category = _CategoryService.ListCategory(); var ViewModel = new EstablishmentFormViewModel { Status = Status, Category = Category }; ViewBag.UF = _UFService.ListUF(); ViewBag.Register = DateTime.UtcNow; ViewBag.Message = TempData["info"]; return(View(ViewModel)); } catch { return(RedirectToAction("Error", "Home", new ErrorViewModel { Message = "Erro ao tentar conectar com o banco de dados" })); } }