renaming Reviewed
This commit is contained in:
parent
c74ac71b5d
commit
ee6cb34c23
9 changed files with 28 additions and 23 deletions
|
|
@ -1,7 +1,6 @@
|
|||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Yavsc.Helpers;
|
||||
using Yavsc.Models;
|
||||
using Yavsc.Models.Workflow;
|
||||
using Yavsc.Server.Helpers;
|
||||
|
|
@ -50,7 +49,13 @@ namespace Yavsc.Controllers
|
|||
private void SetViewBag(CommandForm commandForm = null)
|
||||
{
|
||||
ViewBag.ActivityCode = new SelectList(_context.Activities, "Code", "Name", commandForm?.ActivityCode);
|
||||
ViewBag.ActionName = new SelectList(_context.CommandForm, nameof(CommandForm.Id), nameof(CommandForm.Title), commandForm?.Id);
|
||||
ViewBag.ActionName = new SelectList(
|
||||
new[]{
|
||||
new SelectListItem { Value = "Create", Text = "Create" },
|
||||
new SelectListItem { Value = "Update", Text = "Update" },
|
||||
new SelectListItem { Value = "Delete", Text = "Delete" }
|
||||
});
|
||||
|
||||
}
|
||||
// POST: CommandForms/Create
|
||||
[HttpPost]
|
||||
|
|
|
|||
|
|
@ -65,14 +65,14 @@ namespace Yavsc.Controllers
|
|||
}
|
||||
|
||||
[AllowAnonymous]
|
||||
public async Task <ActionResult> HairCut(string id)
|
||||
public async Task <ActionResult> ListPerformersAsync(string activityCode)
|
||||
{
|
||||
if (id == null)
|
||||
if (activityCode == null)
|
||||
{
|
||||
throw new NotImplementedException("No Activity code");
|
||||
}
|
||||
ViewBag.Activity = await _context.Activities.FirstOrDefaultAsync(a => a.Code == id);
|
||||
var result = await _context.ListPerformersAsync(_billing, id);
|
||||
ViewBag.Activity = await _context.Activities.FirstOrDefaultAsync(a => a.Code == activityCode);
|
||||
var result = await _context.ListPerformersAsync(_billing, activityCode);
|
||||
return View(result);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue