public ActionResult Edit([Bind(Include = "Id,JobId,eAddress,Name,Surname,Location,Education,CV,Experience,PreviousProjects")] ApplicantsForJob applicantsForJob)
 {
     if (ModelState.IsValid)
     {
         db.Entry(applicantsForJob).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(applicantsForJob));
 }
예제 #2
0
 public ActionResult Edit([Bind(Include = "Profileid,JobId,comment")] Comment comment)
 {
     if (ModelState.IsValid)
     {
         db.Entry(comment).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.JobId     = new SelectList(db.Jobs, "Id", "Position", comment.JobId);
     ViewBag.Profileid = new SelectList(db.Profiles, "Id", "Username", comment.Profileid);
     return(View(comment));
 }
예제 #3
0
        public ActionResult Edit([Bind(Include = "Id,Education,Location,CV,Experience,PreviousProjects")] Portfolio portfolio)
        {
            HttpCookie reqCookies = Request.Cookies["userInfo"];

            if (reqCookies != null)
            {
                var id = Convert.ToInt32(reqCookies["Id"].ToString());
                portfolio.ProfilId        = id;
                db.Entry(portfolio).State = EntityState.Modified;
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }
            return(View(portfolio));
        }