// // 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)); }
public ActionResult Index() { var position = new Models.PositionModel().GetAllPositions().Where(x => x.IsDelete == false); return(View(position)); }
// // GET: /Position/Create public ActionResult Create() { Models.PositionModel model = new Models.PositionModel(); return(View(model)); }