예제 #1
0
        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));
        }
예제 #2
0
 public ActionResult List(Paging paging, List <OrderBy> orderBy)
 {
     return(this.JsonNet(EgharpayBusinessService.RetrieveCentres(UserOrganisationId, orderBy, paging)));
 }
예제 #3
0
        public ActionResult GetCentres()
        {
            var data = EgharpayBusinessService.RetrieveCentres(UserOrganisationId);

            return(this.JsonNet(data));
        }