Exemplo n.º 1
0
        //
        // GET: /Position/Edit/5
        public async Task <ActionResult> Edit(int id)
        {
            AESManagement.Models.PositionModel model    = new Models.PositionModel();
            AESDataService.Position            position = new AESDataService.Position();
            using (AESDataService.DataServiceClient client = new AESDataService.DataServiceClient())
            {
                position = await client.getPositionAsync(id);

                model.Id           = position.positionId;
                model.Title        = position.title;
                model.Description  = position.description;
                model.Education    = position.education;
                model.Requirements = position.requirements;
                model.Pay          = position.pay;
            }
            return(View(model));
        }
Exemplo n.º 2
0
        public ActionResult Index()
        {
            var position = new Models.PositionModel().GetAllPositions().Where(x => x.IsDelete == false);

            return(View(position));
        }
Exemplo n.º 3
0
 //
 // GET: /Position/Create
 public ActionResult Create()
 {
     Models.PositionModel model = new Models.PositionModel();
     return(View(model));
 }