public void Set(UpdateOperationViewModel model) { model.Operation = CurrentOperation; model.IsEnabled = IsEnabled(model) ?? false; model.Operations = Changes; model.BackLink = GetBackLink(); _tempData.Set(Changes); }
public static void SetRedirectUrl(this TempDataDictionary TempData, string RedirectUrl) { TempData.Set(RedirectUrl); }
public static void SetRegistrationModel(this TempDataDictionary TempData, RegistrationModel Model) { TempData.Set(Model); }
public static void SetMessage(this TempDataDictionary TempData, string Message) { TempData.Set(Message); }
public static void SetSuccess(this TempDataDictionary TempData, bool Success) { TempData.Set(Success); }
/// <summary> /// Keep a value with a key for an additional request. /// </summary> /// <typeparam name="T">Value type.</typeparam> /// <param name="tempData">The TempData instance.</param> /// <param name="key">The key.</param> public static void Keep <T>(this TempDataDictionary tempData, string key) { T o = tempData.Get <T>(key); tempData.Set <T>(key, o); }
/// <summary> /// Keep a value for an additional request. /// </summary> /// <typeparam name="T">Value type.</typeparam> /// <param name="tempData">The TempData instance.</param> public static void Keep <T>(this TempDataDictionary tempData) { T o = tempData.Get <T>(); tempData.Set <T>(o); }