authorizations and routes
This commit is contained in:
parent
50d870377d
commit
7827ef477a
2 changed files with 4 additions and 2 deletions
|
|
@ -1,5 +1,6 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Microsoft.AspNet.Authorization;
|
||||
using Microsoft.AspNet.Http;
|
||||
using Microsoft.AspNet.Mvc;
|
||||
using Microsoft.Data.Entity;
|
||||
|
|
@ -9,7 +10,7 @@ using Yavsc.Models.Billing;
|
|||
namespace Yavsc.Controllers
|
||||
{
|
||||
[Produces("application/json")]
|
||||
[Route("api/Estimate")]
|
||||
[Route("api/do"),Authorize(Roles="Performer,Administrator")]
|
||||
public class EstimateApiController : Controller
|
||||
{
|
||||
private ApplicationDbContext _context;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue