public ActionResult Edit([Bind(Include = "AptId,AptAddress,SqFootage,MonthUtilityFee,MonthParkfee,LastCleanDate,IsVacant")] Apartment apartment) { if (ModelState.IsValid) { db.Entry(apartment).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(apartment)); }
public ActionResult Edit([Bind(Include = "TenantId,FirstName,LastName,Phone,Email")] Tenant tenant) { if (ModelState.IsValid) { db.Entry(tenant).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tenant)); }