Add alert success to creation
This commit is contained in:
@@ -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});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user