public async Task<ActionResult> LoadApplication(AESHiringManagement.Models.Application model) { int id = Dashboard.getId((Request["selectApp"]).ToString()); using (var client = new AESDataService.DataServiceClient()) { model.application = await client.getApplicationAsync(id); client.Close(); Dashboard.checkoutApplication(id); } if (model.notes == null) { model.notes = new AESDataService.Note(); } return View("Index", model); }