Esempio n. 1
0
        public ActionResult GetForm(string primaryKey)
        {
            var entity = UserService.Get(primaryKey);

            entity.RoleId   = UserRoleRelationService.GetList(entity.Id).Select(c => c.SURRRoleId).ToList();
            entity.DeptName = OrganizeService.Get(entity.SUDepartmentId.ToString()).SOFullName;
            return(Content(entity.ToJson()));
        }
Esempio n. 2
0
        public ActionResult GetForm(string primaryKey)
        {
            var entity = OrganizeService.Get(primaryKey);

            return(Content(entity.ToJson()));
        }