// // GET: /Position/ public async Task <ActionResult> Index() { IList <AESDataService.Position> model = new List <AESDataService.Position>(); using (AESDataService.DataServiceClient client = new AESDataService.DataServiceClient()) { model = await client.getAllPositionsAsync(); } return(View(model)); }
// // GET: /Store/ public async Task<ActionResult> Index() { IList<AESDataService.Store> model = new List<AESDataService.Store>(); using (AESDataService.DataServiceClient client = new AESDataService.DataServiceClient()) { model = await client.getAllStoresAsync(); } return View(model); }
public ActionResult Authenticate(UserModel model) { Session["Status"] = "LoggedIn"; using (var client = new AESDataService.DataServiceClient()) { //make some call to get permission level //method doesnt exist yet.... Session["Permission"] = client.authenticateManager(model.userName, model.password); } return RedirectToAction("Index","Dashboard"); }
// // GET: /Question/Edit/5 public ActionResult Edit(int id) { Models.QuestionModel model = new Models.QuestionModel(); AESDataService.Question question = new AESDataService.Question(); using (AESDataService.DataServiceClient client = new AESDataService.DataServiceClient()) { question = client.getQuestion(id); model.QuestionId = question.questionId; model.Question = question.theQuestion; model.Answer = question.theAnswer; } return View(model); }
// // GET: /Question/Edit/5 public ActionResult Edit(int id) { Models.QuestionModel model = new Models.QuestionModel(); AESDataService.Question question = new AESDataService.Question(); using (AESDataService.DataServiceClient client = new AESDataService.DataServiceClient()) { question = client.getQuestion(id); model.QuestionId = question.questionId; model.Question = question.theQuestion; model.Answer = question.theAnswer; } return(View(model)); }
public ActionResult setSession(string status = "new") { if (Session["_Locked"] != null) { using (AESDataService.DataServiceClient client = new AESDataService.DataServiceClient()) { client.unlockApp((int)Session["_Locked"]); } } Session["_Status"] = status; return RedirectToAction("Applicant","Application",-1); }
public ActionResult setSession(string status = "new") { if (Session["_Locked"] != null) { using (AESDataService.DataServiceClient client = new AESDataService.DataServiceClient()) { client.unlockApp((int)Session["_Locked"]); } } Session["_Status"] = status; return(RedirectToAction("Applicant", "Application", -1)); }
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); }
// // GET: /Store/Edit/5 public ActionResult Edit(int id) { AESManagement.Models.StoreModel model = new Models.StoreModel(); AESDataService.Store store = new AESDataService.Store(); using (AESDataService.DataServiceClient client = new AESDataService.DataServiceClient()) { store = client.getStoreInfo(id); model.StoreId = store.storeId; model.Name = store.name; model.Street = store.street; model.City = store.city; model.State = store.state; model.Zip = store.zip; } return(View(model)); }
// // GET: /Store/Edit/5 public ActionResult Edit(int id) { AESManagement.Models.StoreModel model = new Models.StoreModel(); AESDataService.Store store = new AESDataService.Store(); using (AESDataService.DataServiceClient client = new AESDataService.DataServiceClient()) { store = client.getStoreInfo(id); model.StoreId = store.storeId; model.Name = store.name; model.Street = store.street; model.City = store.city; model.State = store.state; model.Zip = store.zip; } return View(model); }
// // GET: /Pending/ public ActionResult UpdatePending() { if (Session["_Status"] == null) { Session["_Status"] = "new"; } List<AESManagement.AESDataService.Applicant> model = new List<AESDataService.Applicant>(); using (AESDataService.DataServiceClient client = new AESDataService.DataServiceClient()) { foreach (var app in client.getApplicationsWithStatus((string)Session["_Status"])) { model.Add(app); } } return PartialView("Pending", model); }
// // GET: /Pending/ public ActionResult UpdatePending() { if (Session["_Status"] == null) { Session["_Status"] = "new"; } List <AESManagement.AESDataService.Applicant> model = new List <AESDataService.Applicant>(); using (AESDataService.DataServiceClient client = new AESDataService.DataServiceClient()) { foreach (var app in client.getApplicationsWithStatus((string)Session["_Status"])) { model.Add(app); } } return(PartialView("Pending", model)); }
// // 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 Create(FormCollection collection) { try { AESDataService.Question question = new AESDataService.Question(); using (AESDataService.DataServiceClient client = new AESDataService.DataServiceClient()) { question.theQuestion = Request.Form["theQuestion"]; question.theAnswer = Request.Form["theAnswer"]; client.updateQuestion(question); } return RedirectToAction("Index"); } catch { return View(); } }
public ActionResult Create(FormCollection collection) { try { AESDataService.Question question = new AESDataService.Question(); using (AESDataService.DataServiceClient client = new AESDataService.DataServiceClient()) { question.theQuestion = Request.Form["theQuestion"]; question.theAnswer = Request.Form["theAnswer"]; client.updateQuestion(question); } return(RedirectToAction("Index")); } catch { return(View()); } }
public static void updatePendingApplications(string status) { using (AESDataService.DataServiceClient client = new AESDataService.DataServiceClient()) { pendingApplications.Clear(); var apps = client.getApplicationsWithStatus(status); foreach (var app in apps) { bool found = false; foreach (var c in getCheckedoutApplications()) { if (app.id == c) { found = true; } } if (!found) pendingApplications.Add(app); } } }
public ActionResult Create(FormCollection collection) { try { AESDataService.Store store = new AESDataService.Store(); using (AESDataService.DataServiceClient client = new AESDataService.DataServiceClient()) { store.name = Request.Form["name"]; store.street = Request.Form["street"]; store.city = Request.Form["city"]; store.state = Request.Form["state"]; store.zip = Request.Form["zip"]; client.updateStore(store); } return(RedirectToAction("Index")); } catch { return(View()); } }
public ActionResult Create(FormCollection collection) { try { AESDataService.Store store = new AESDataService.Store(); using (AESDataService.DataServiceClient client = new AESDataService.DataServiceClient()) { store.name = Request.Form["name"]; store.street = Request.Form["street"]; store.city = Request.Form["city"]; store.state = Request.Form["state"]; store.zip = Request.Form["zip"]; client.updateStore(store); } return RedirectToAction("Index"); } catch { return View(); } }
public async Task <ActionResult> Create(FormCollection collection) { try { AESDataService.Position position = new AESDataService.Position(); using (AESDataService.DataServiceClient client = new AESDataService.DataServiceClient()) { position.title = Request.Form["title"]; position.education = Request.Form["education"]; position.description = Request.Form["description"]; position.requirements = Request.Form["requirements"]; position.pay = Request.Form["pay"]; await client.updatePositionAsync(position); } return(RedirectToAction("Index")); } catch { return(View()); } }