public class TrainingListEmployeesViewModel : BaseTrainingViewModel { public TrainingListEmployeesViewModel() { this.EmployeeList = new List(); this.ClientEmployeeSelector = new ClientEmployeeSelector(); } public TrainingListEmployeesViewModel(List employeeList, string trainingName, string trainingDescription) : base(trainingName, trainingDescription) { this.EmployeeList = employeeList; var dates = new CalendarDates(Utility.GetToday(), Utility.GetToday().AddYears(1)); this.Cvm = new CalendarViewModel(employeeList.ToList(), dates); } public List EmployeeList { get; set; } public ClientEmployeeSelector ClientEmployeeSelector { get; set; } } [HttpPost] [Authorize(Roles = "Administrator, Trainer, ManagerAccounts, ManagerIT")] [ValidateAntiForgeryToken] [ValidateOnlyIncomingValuesAttribute] public ActionResult Training(TrainingViewModel tvm) { SessionObjects.TrainingName = tvm.TrainingName; SessionObjects.TrainingDescription = tvm.TrainingDescription; return this.RedirectToAction("Training", new { employeeId = tvm.EmployeeSelector.SearchTextId }); } [HttpGet] [Authorize(Roles = "Administrator, Trainer, ManagerAccounts, ManagerIT")] public ActionResult BulkTraining() { return this.View(new TrainingListEmployeesViewModel()); } <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> <%@ Import Namespace="System.Web.Script.Serialization" %> Bulk Training

Allocate or cancel training for the selected employees

Course Name <%: Html.EditorFor(model => model.TrainingName) %>
Description (optional) <%: Html.TextAreaFor( model => model.TrainingDescription, new { maxlength = "255", style = "width:400px;height:100px;" }) %>
<%: Html.EditorFor(model => model.ClientEmployeeSelector) %>
Employee
Remove
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
Enter 2 or more characters for "<%: Html.LabelFor(model => model.SearchText)%>" and select from the list.
<%: Html.LabelFor(model => model.SearchText)%> <%: Html.AutocompleteFor(model => model.SearchText, controller: "Payroll", minLength: 2, maxResults: 10, htmlAttributes: new { style = "color:purple; width:500px;" })%> <%: Html.HiddenFor(model => model.SearchTextId)%> <%: Html.HiddenFor(model => model.SearchText)%>
Remove