Skip to content

Commit

Permalink
[#227] [add] controller v2 base class
Browse files Browse the repository at this point in the history
  • Loading branch information
i4004 committed Jan 30, 2024
1 parent 8dad306 commit 39b1e25
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Simplify.Web/Controller2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
/// <summary>
/// User controllers base class version 2.
/// </summary>
public abstract class Controller2 : ResponseShortcutsControllerBase
public abstract class Controller2 : Controller2Base
{
}
17 changes: 17 additions & 0 deletions src/Simplify.Web/Controller2Base.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System.Collections.Generic;

namespace Simplify.Web;

/// <summary>
/// Controllers base class version 2.
/// </summary>
public abstract class Controller2Base : ResponseShortcutsControllerBase
{
/// <summary>
/// Gets the string table.
/// </summary>
/// <value>
/// The string table.
/// </value>
public virtual IDictionary<string, object> StringTable { get; internal set; } = null!;
}
2 changes: 1 addition & 1 deletion src/Simplify.Web/Controller2{T}.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Simplify.Web;
/// <summary>
/// User model controllers base class version 2.
/// </summary>
public abstract class Controller2<T> : ResponseShortcutsControllerBase
public abstract class Controller2<T> : Controller2Base
where T : class
{
private T _model;
Expand Down

0 comments on commit 39b1e25

Please sign in to comment.