public ActionResult Edit([Bind(Include = "id,Name")] PaymantNames PaymantNames) { if (ModelState.IsValid) { db.Update(PaymantNames); return(RedirectToAction("Index")); } return(View(PaymantNames)); }
public ActionResult Delete(int id = 0) { PaymantNames user = db.GetById(id); if (user == null) { return(HttpNotFound()); } return(View(user)); }
public ActionResult Create([Bind(Include = "Name")] PaymantNames PaymantNames) { if (ModelState.IsValid) { db.Add(PaymantNames); return(RedirectToAction("Index")); } return(View(PaymantNames)); }
public ActionResult Details(int id = 0) { PaymantNames PaymantNames = db.GetById(id); if (PaymantNames == null) { return(HttpNotFound()); } return(View(PaymantNames)); }
public void Update(PaymantNames entity) { rep.Update(entity); }
public PaymantNames Add(PaymantNames entity) { return(rep.Add(entity)); }