Created
October 29, 2017 11:29
-
-
Save ozgurrgul/d0aa1dbebfaa0da8d358b653d37a0e55 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Microsoft.AspNetCore.Mvc; | |
| using SimpleCrudApi.Entities; | |
| namespace SimpleCrudApi.Controllers | |
| { | |
| [Route("User/[action]")] | |
| public class UserController : SimpleCrudController<User, int> | |
| { | |
| public UserController(ApplicationDbContext dbContext) : base(dbContext) | |
| { | |
| } | |
| } | |
| [Route("Announcement/[action]")] | |
| public class AnnouncementController : SimpleCrudController<Announcement, int> | |
| { | |
| public AnnouncementController(ApplicationDbContext dbContext) : base(dbContext) | |
| { | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment