public ActionResult DeleteConfirmed(int id) { Client_Type client_Type = db.Client_Type.Find(id); db.Client_Type.Remove(client_Type); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Id_Client_Type,Type_Name")] Client_Type client_Type) { if (ModelState.IsValid) { db.Entry(client_Type).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(client_Type)); }
public ActionResult Create([Bind(Include = "Id_Client_Type,Type_Name")] Client_Type client_Type) { if (ModelState.IsValid) { db.Client_Type.Add(client_Type); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(client_Type)); }
// GET: ClientType/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Client_Type client_Type = db.Client_Type.Find(id); if (client_Type == null) { return(HttpNotFound()); } return(View(client_Type)); }
public int NavigatoToMain_Client(Client_Type _type) { clients[_type].Navigate_toMain(); return(1); }
public int LogIn_Client(Client_Type _type) { clients[_type].LogIn(); return(1); }
public int doSth(Client_Type _type) { clients[_type].doSth(); return(1); }