Ejemplo n.º 1
0
        public ActionResult DoctorUpdate(DoctorEditViewModel model)
        {
            string table = "CrmDoctor";
            string strwhere = "DoctorId=" + model.DoctorId;
            DoctorDto doctorDto = DoctorBll.GetOneDoctorDto(table,strwhere);

            doctorDto.DoctorUserName = model.DoctorUserName;
            doctorDto.DoctorRealName = model.DoctorRealName;
            doctorDto.DoctorRegTime = System.DateTime.Now;

            DoctorBll.UpdateDoctorDto(doctorDto);

            return RedirectToAction("DoctorIndex");
        }
Ejemplo n.º 2
0
        public ActionResult DoctorEdit(int DoctorId)
        {
            string table = "CrmDoctor";
            string strwhere="DoctorId="+DoctorId;
            DoctorDto doctorDto = DoctorBll.GetOneDoctorDto(table, strwhere);

            DoctorEditViewModel model = new DoctorEditViewModel();

            model.DoctorUserName = doctorDto.DoctorUserName;
            model.DoctorRealName = doctorDto.DoctorRealName;
            model.DoctorId = doctorDto.DoctorId;

            return View(model);
        }