Esempio n. 1
0
        public ActionResult Edit(CommonUserDTO model)
        {
            try
            {
                var entity = CommonUserService.GetModel(model.Id);
                entity.Status       = model.Status;
                entity.Address      = model.Address;
                entity.Email        = model.Email;
                entity.Fax          = model.Fax;
                entity.Gander       = model.Gander;
                entity.IDNumber     = model.IDNumber;
                entity.Mobile       = model.Mobile;
                entity.Phone        = model.Phone;
                entity.QQ           = model.QQ;
                entity.UserName     = model.UserName;
                entity.ModifyUserId = model.Id;
                entity.ModifyDate   = DateTime.Now;
                CommonUserService.Modify(entity);

                return(View("Jump"));
            }
            catch
            {
                return(View());
            }
        }
Esempio n. 2
0
        public ActionResult Edit(Guid id)
        {
            CommonUser entity = CommonUserService.GetModel(id);
            var        model  = Mapper.Map <CommonUserDTO>(entity);

            return(View(model));
        }