Пример #1
0
        public ActionResult GetForm(string primaryKey)
        {
            SysUser entity = userLogic.Get(primaryKey);

            entity.RoleId      = userRoleRelationLogic.GetList(entity.Id).Select(c => c.RoleId).ToList();
            entity.StrBirthday = entity.Birthday.Value.ToString("yyyy-MM-dd");
            return(Content(entity.ToJson()));
        }
Пример #2
0
        public ActionResult GetInfoCardForm()
        {
            string  userId     = OperatorProvider.Instance.Current.UserId;
            SysUser userEntity = userlogic.Get(userId);

            userEntity.StrBirthday = userEntity.Birthday.Value.ToString("yyyy-MM-dd");
            return(Content(userEntity.ToJson()));
        }