public IActionResult AddPlaceType(GuestPlaceType guestPlaceType) { if (ModelState.IsValid) { var GuestPlaceType = new GuestPlaceType { Name = guestPlaceType.Name, Description = guestPlaceType.Description }; _db.AddGuestPlaceType(GuestPlaceType); return(RedirectToAction("Dashboard", "Admin")); } return(View("Views/Shared/AddNewPlaceTypePartialView.cshtml", guestPlaceType)); }