Skip to content

Instantly share code, notes, and snippets.

@ozgurrgul
Created October 29, 2017 11:29
Show Gist options
  • Select an option

  • Save ozgurrgul/d0aa1dbebfaa0da8d358b653d37a0e55 to your computer and use it in GitHub Desktop.

Select an option

Save ozgurrgul/d0aa1dbebfaa0da8d358b653d37a0e55 to your computer and use it in GitHub Desktop.
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