Example #1
0
        public ActionResult DeleteConfirmed(Guid id)
        {
            Applicant_Work_History applicant_Work_History = db.Applicant_Work_History.Find(id);

            db.Applicant_Work_History.Remove(applicant_Work_History);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Example #2
0
 public ActionResult Edit([Bind(Include = "Id,Applicant,Company_Name,Country_Code,Location,Job_Title,Job_Description,Start_Month,Start_Year,End_Month,End_Year,Time_Stamp")] Applicant_Work_History applicant_Work_History)
 {
     if (ModelState.IsValid)
     {
         db.Entry(applicant_Work_History).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.Applicant    = new SelectList(db.Applicant_Profiles, "Id", "Currency", applicant_Work_History.Applicant);
     ViewBag.Country_Code = new SelectList(db.System_Country_Codes, "Code", "Name", applicant_Work_History.Country_Code);
     return(View(applicant_Work_History));
 }
Example #3
0
        // GET: Applicant_Work_History/Details/5
        public ActionResult Details(Guid?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Applicant_Work_History applicant_Work_History = db.Applicant_Work_History.Find(id);

            if (applicant_Work_History == null)
            {
                return(HttpNotFound());
            }
            return(View(applicant_Work_History));
        }
Example #4
0
        // GET: Applicant_Work_History/Edit/5
        public ActionResult Edit(Guid?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Applicant_Work_History applicant_Work_History = db.Applicant_Work_History.Find(id);

            if (applicant_Work_History == null)
            {
                return(HttpNotFound());
            }
            ViewBag.Applicant    = new SelectList(db.Applicant_Profiles, "Id", "Currency", applicant_Work_History.Applicant);
            ViewBag.Country_Code = new SelectList(db.System_Country_Codes, "Code", "Name", applicant_Work_History.Country_Code);
            return(View(applicant_Work_History));
        }