public ActionResult Edit([Bind(Include = "Id,Title,Info")] PersonalDetails personalDetails)
 {
     if (ModelState.IsValid)
     {
         db.Entry(personalDetails).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(personalDetails));
 }
示例#2
0
 public ActionResult Edit([Bind(Include = "Id,Icon,Title,Content,Year")] Education education)
 {
     if (ModelState.IsValid)
     {
         db.Entry(education).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(education));
 }
 public ActionResult Edit([Bind(Include = "Id,Image,Title,Content,History,Share,Network")] MyBlog myBlog)
 {
     if (ModelState.IsValid)
     {
         db.Entry(myBlog).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(myBlog));
 }
 public ActionResult Edit([Bind(Include = "Id,From,To,FromInfo,ToInfo,Themes,ThemesInfo,ContentTitle,Content")] Experience experience)
 {
     if (ModelState.IsValid)
     {
         db.Entry(experience).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(experience));
 }
 public ActionResult Edit([Bind(Include = "Id,Icon,Title,Content")] ConnectNumber connectNumber)
 {
     if (ModelState.IsValid)
     {
         db.Entry(connectNumber).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(connectNumber));
 }
示例#6
0
 public ActionResult Edit([Bind(Include = "Id,Content,Author,Profession")] Recommendation recommendation)
 {
     if (ModelState.IsValid)
     {
         db.Entry(recommendation).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(recommendation));
 }
 public ActionResult Edit([Bind(Include = "Id,Name,Animation")] Skills skills)
 {
     if (ModelState.IsValid)
     {
         db.Entry(skills).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(skills));
 }
示例#8
0
 public ActionResult Edit([Bind(Include = "Id,Menu")] PortfolioNav portfolioNav)
 {
     if (ModelState.IsValid)
     {
         db.Entry(portfolioNav).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(portfolioNav));
 }
 public ActionResult Edit([Bind(Include = "Id,Icon,Name,Level")] Language language)
 {
     if (ModelState.IsValid)
     {
         db.Entry(language).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(language));
 }
示例#10
0
 public ActionResult Edit([Bind(Include = "Id,Title,Content,ButtonInfo,Name,Image,Position,CountryInfo,Faculty,EducationTitle,EducationInfo,PreviosTitle,Previosİnfo")] AboutInfo aboutInfo)
 {
     if (ModelState.IsValid)
     {
         db.Entry(aboutInfo).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(aboutInfo));
 }