Ejemplo n.º 1
0
 public ActionResult Edit([Bind(Include = "Id,CategoryName")] HouseCategory houseCategory)
 {
     if (ModelState.IsValid)
     {
         _dbContext.Entry(houseCategory).State = EntityState.Modified;
         _dbContext.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(houseCategory));
 }
 public ActionResult Edit([Bind(Include = "Id,FullName,BirthDay,Address,PhoneNumber,Email,UserName,Password,CompanyCode,CreatedBy,CreatedDate,ModifiedDate,ModifiedBy,IsActive,IsDelete")] CustomerInfomation customerInfomation)
 {
     if (ModelState.IsValid)
     {
         db.Entry(customerInfomation).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(customerInfomation));
 }