refx & wf actions config
This commit is contained in:
parent
2f3a08829d
commit
d8fa166115
11 changed files with 38 additions and 25 deletions
|
|
@ -42,7 +42,6 @@ namespace Yavsc.Controllers
|
|||
[AllowAnonymous]
|
||||
public IActionResult Index(string id, int skip=0, int maxLen=25)
|
||||
{
|
||||
|
||||
if (!string.IsNullOrEmpty(id))
|
||||
return UserPosts(id);
|
||||
string uid = User.GetUserId();
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ namespace Yavsc.Controllers
|
|||
}
|
||||
private void SetViewBag(CommandForm commandForm=null) {
|
||||
ViewBag.ActivityCode = new SelectList(_context.Activities, "Code", "Name", commandForm?.ActivityCode);
|
||||
ViewBag.Action = YavscLib.YavscConstants.Forms.Select( c => new SelectListItem { Text = c, Selected = commandForm?.Action == c } );
|
||||
ViewBag.Action = Startup.Forms.Select( c => new SelectListItem { Text = c, Selected = commandForm?.Action == c } );
|
||||
}
|
||||
// POST: CommandForms/Create
|
||||
[HttpPost]
|
||||
|
|
|
|||
|
|
@ -46,8 +46,8 @@ namespace Yavsc.Controllers
|
|||
return View(model);
|
||||
}
|
||||
|
||||
[Route("Book/{id?}"), HttpGet, AllowAnonymous]
|
||||
public ActionResult Book(string id)
|
||||
[Route("Profiles/{id?}"), HttpGet, AllowAnonymous]
|
||||
public ActionResult Profiles(string id)
|
||||
{
|
||||
if (id == null)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue