public ActionResult DeleteConfirmed(int id) { _operator _operator = db._operator.Find(id); db._operator.Remove(_operator); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "op_code,op_name,op_pass,op_cardno,remark,creator,creatdt,deptno")] _operator _operator) { if (ModelState.IsValid) { db.Entry(_operator).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(_operator)); }
public ActionResult Create([Bind(Include = "op_code,op_name,op_pass,op_cardno,remark,creator,creatdt,deptno")] _operator _operator) { if (ModelState.IsValid) { db._operator.Add(_operator); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(_operator)); }
// GET: _operator/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } _operator _operator = db._operator.Find(id); if (_operator == null) { return(HttpNotFound()); } return(View(_operator)); }
set => SetProperty(ref _operator, value);
public OperatorPrincipal(_operator oper) { this._identity = new OperatorIdentity(oper); }
public OperatorIdentity(_operator oper) { this._operatorObj = oper; this._name = oper.oper_name; }