public ActionResult Create() { var centres = EgharpayBusinessService.RetrieveCentres(UserOrganisationId, e => true); var viewModel = new PersonnelProfileViewModel { Centres = new SelectList(centres, "CentreId", "Name"), Personnel = new Personnel { OrganisationId = UserOrganisationId, DOB = DateTime.Today, Title = "Mr", Forenames = "A", Surname = "B", Email = string.Format("{0}@hr.com", Guid.NewGuid()), Address1 = "Address1", Postcode = "POST CODE", Telephone = "12345678", }, }; return(View(viewModel)); }
public ActionResult List(Paging paging, List <OrderBy> orderBy) { return(this.JsonNet(EgharpayBusinessService.RetrieveCentres(UserOrganisationId, orderBy, paging))); }
public ActionResult GetCentres() { var data = EgharpayBusinessService.RetrieveCentres(UserOrganisationId); return(this.JsonNet(data)); }