refx & wf actions config

This commit is contained in:
Paul Schneider 2017-02-12 23:53:53 +01:00
commit d8fa166115
11 changed files with 38 additions and 25 deletions

View file

@ -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();

View file

@ -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]

View file

@ -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)
{