public ActionResult Edit([Bind(Include = "UserId,UserName,Email,Phone,NID,DateOfBirth,Address,Gender,UserType,Image,Password,confirmPassword")] Users users)
 {
     if (ModelState.IsValid)
     {
         db.Entry(users).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(users));
 }
Example #2
0
 public ActionResult Approved(Events events)
 {
     if (ModelState.IsValid)
     {
         events.Status          = "Approved";
         db.Entry(events).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("EventStatus"));
     }
     return(View(events));
 }
Example #3
0
 public void Update(Owner entity)
 {
     _dbContext.Entry(entity).State = EntityState.Modified;
     _dbContext.SaveChanges();
 }
 public void Update(Event entity)
 {
     Context.Entry(entity).State = EntityState.Modified;
     Context.SaveChanges();
 }