Methodize status message handling

This commit is contained in:
2015-10-10 22:42:38 -04:00
parent 6482955b3c
commit 22e4089fba
10 changed files with 71 additions and 66 deletions
+1 -2
View File
@@ -47,8 +47,7 @@ namespace MileageTraker.Web.Controllers
{
DataService.AddCity(city);
TempData["StatusMessage-Type"] = "alert-success";
TempData["StatusMessage"] = "City " + city.Name + " created";
SetStatusMessage("City " + city.Name + " created", StatusType.Success);
return RedirectToAction("Index");
}