Add alert success to creation

This commit is contained in:
2015-10-07 23:27:52 -04:00
parent 12cc062168
commit 41adb2298b
3 changed files with 6 additions and 1 deletions
+2
View File
@@ -161,6 +161,7 @@ namespace MileageTraker.Web.Controllers
DataService.AddLog(log);
TempData["StatusMessage-Type"] = "alert-success";
TempData["StatusMessage"] = "Log created";
if (TempData.ContainsKey("FuelLogId"))
@@ -172,6 +173,7 @@ namespace MileageTraker.Web.Controllers
DataService.UpdateFuelLog(fuelLog);
// return to the fuel log match page
TempData["StatusMessage-Type"] = "alert-success";
TempData["StatusMessage"] = "Log created and matched to the fuel log";
return RedirectToAction("Match", "FuelLog", new {id = fuelLogId});
}