public ActionResult Create() { var organisationId = UserOrganisationId; var centres = _nidanBusinessService.RetrieveCentres(organisationId, e => true); var viewModel = new CompanyViewModel { Company = new Company(), Centres = new SelectList(centres, "CentreId", "Name") }; return(View(viewModel)); }
public ActionResult Create() { var organisationId = UserOrganisationId; var centreId = UserCentreId; var centres = _nidanBusinessService.RetrieveCentres(organisationId, e => true); var batches = _nidanBusinessService.RetrieveBatches(organisationId, e => e.CentreId == centreId); var viewModel = new BatchPrePlacementViewModel { BatchPrePlacement = new BatchPrePlacement(), Centres = new SelectList(centres, "CentreId", "Name"), Batches = new SelectList(batches, "BatchId", "Name"), }; return(View(viewModel)); }