/// <summary> /// 帐号编辑 /// </summary> /// <returns></returns> public ActionResult Edit(int?id) { OperatorEditDto dto = new OperatorEditDto(); if (id > 0) { OperatorService x_opservice = new OperatorService(); dto.OperInfo = x_opservice.Get(a => a.Id == id).FirstOrDefault(); } if (dto.OperInfo == null) { dto.OperInfo = new OperatorInfo(); } return(View(dto)); }