예제 #1
0
        public async Task <ActionResult> Edit([Bind(Include = "LandingPageId,One,Two,Three,Four,Five,Six,Seven,Eight,Nine,Ten,Eleven,Tweleve,Thirteen,Fourteen,Fifteen,Seventeen,Eighteen,Nineteen,Twenty,TwentyOne,TwentyTwo,TwentyThree,TwentyFour,TwentyFive,TwentySIx,TwentySeven,TwentyEight,TwentyNine,Thirty,ThirtyOne,ThirtyTwo,ThirtyThree,ThirtyFour,ThirtyFive,ThirtySix,ThirtySeven,ThirtyEight,ThirtyNine,Fourty,FourtyOne,fourtyTwo,FourtyThree,FourtyFour")] LandingPage landingPage)
        {
            if (ModelState.IsValid)
            {
                db.Entry(landingPage).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(landingPage));
        }
예제 #2
0
 public bool Update(ImgObj site)
 {
     db.Entry(site).State = System.Data.Entity.EntityState.Modified;
     db.SaveChanges();
     return(true);
 }
예제 #3
0
 public bool Update(Email entity)
 {
     db.Entry(entity).State = EntityState.Modified;
     db.SaveChanges();
     return(true);
 }