public ActionResult Edit([Bind(Include = "id,name,minute_number,sms_number,price")] tariffs tariffs) { if (ModelState.IsValid) { db.Entry(tariffs).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tariffs)); }
public ActionResult Edit([Bind(Include = "id,name")] regions regions) { if (ModelState.IsValid) { db.Entry(regions).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(regions)); }
public ActionResult Edit([Bind(Include = "id,address,passport_info,birthday,sex")] personal_data personal_data) { if (ModelState.IsValid) { db.Entry(personal_data).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(personal_data)); }
public ActionResult Edit([Bind(Include = "id,full_name,experience,salary,id_region")] operators operators) { if (ModelState.IsValid) { db.Entry(operators).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.id_region = new SelectList(db.regions, "id", "name", operators.id_region); return(View(operators)); }
public ActionResult Edit([Bind(Include = "id,date,payment_value,id_subscriber_tariff")] payments payments) { if (ModelState.IsValid) { db.Entry(payments).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.id_subscriber_tariff = new SelectList(db.subscriber_tariff_list, "id", "id", payments.id_subscriber_tariff); return(View(payments)); }
public ActionResult Edit([Bind(Include = "id,id_personal_data,full_name,telephone_number,id_region")] subscribers subscribers) { if (ModelState.IsValid) { db.Entry(subscribers).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.id_personal_data = new SelectList(db.personal_data, "id", "address", subscribers.id_personal_data); ViewBag.id_region = new SelectList(db.regions, "id", "name", subscribers.id_region); return(View(subscribers)); }
public ActionResult Edit([Bind(Include = "id,id_tariff,id_subscriber,date")] subscriber_tariff_list subscriber_tariff_list) { if (ModelState.IsValid) { db.Entry(subscriber_tariff_list).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.id_subscriber = new SelectList(db.subscribers, "id", "full_name", subscriber_tariff_list.id_subscriber); ViewBag.id_tariff = new SelectList(db.tariffs, "id", "name", subscriber_tariff_list.id_tariff); return(View(subscriber_tariff_list)); }