allow anonymous to visit profiles
This commit is contained in:
parent
a9616f2c90
commit
9a4792d60a
1 changed files with 2 additions and 2 deletions
|
|
@ -45,7 +45,7 @@ namespace Yavsc.Controllers
|
|||
return View(model);
|
||||
}
|
||||
|
||||
[Route("Book/{id?}"), HttpGet]
|
||||
[Route("Book/{id?}"), HttpGet, AllowAnonymous]
|
||||
public ActionResult Book(string id)
|
||||
{
|
||||
if (id == null)
|
||||
|
|
@ -62,7 +62,7 @@ namespace Yavsc.Controllers
|
|||
return View(result);
|
||||
}
|
||||
|
||||
[Route("Book/{id}"), HttpPost]
|
||||
[Route("Book/{id}"), HttpPost, AllowAnonymous]
|
||||
public ActionResult Book(BookQuery bookQuery)
|
||||
{
|
||||
if (ModelState.IsValid)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue