You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public class ListController<T> : Controller where T class, new()
Then we inherit two controllers from this ListController
public class CustomerController : ListController<Customer>
and
public class OrderController : ListController<Order>
Now let's say I have a common action, that can not be put inside the ListController. How do you share that action between these controllers without repeating yourself?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Let's say we have a generic base class:
Then we inherit two controllers from this
ListController
and
Now let's say I have a common action, that can not be put inside the
ListController
. How do you share that action between these controllers without repeating yourself?Beta Was this translation helpful? Give feedback.
All reactions