Breaking 05_03 in twain
This commit is contained in:
@ -7,8 +7,19 @@ namespace HPlusSports
|
||||
{
|
||||
public static class TempDataExtensions
|
||||
{
|
||||
const string ErrorMessageKey = "ErrorMessage";
|
||||
const string SuccessMessageKey = "SuccessMessage";
|
||||
|
||||
public static string ErrorMessage(this System.Web.Mvc.TempDataDictionary tempData)
|
||||
{
|
||||
return tempData[ErrorMessageKey] as string;
|
||||
}
|
||||
|
||||
public static void ErrorMessage(this System.Web.Mvc.TempDataDictionary tempData, string errorMessage)
|
||||
{
|
||||
tempData[ErrorMessageKey] = errorMessage;
|
||||
}
|
||||
|
||||
public static string SuccessMessage(this System.Web.Mvc.TempDataDictionary tempData)
|
||||
{
|
||||
return tempData[SuccessMessageKey] as string;
|
||||
|
||||
Reference in New Issue
Block a user