Example #1
0
        static EntityPostRequest BuilddeleteUserRoleRequest(string roleid)
        {
            UserRoleMap ur = new UserRoleMap()
            {
                RoleID = roleid
            };

            EntityPostRequest request = new EntityPostRequest(EntityPostRequest.EntityPostMethod.Delete)
            {
                Entity = ur
            };

            request.AppendConditionMap(ur.RoleID, () => ur.RoleID);
            return(request);
        }
Example #2
0
 static EntityPostRequest BuildaddRoleRequest(string userid, string roleid)
 {
     UserRoleMap role = new UserRoleMap()
     {
         RoleID = roleid,
         UserID = userid
     };
     EntityPostRequest request = new EntityPostRequest(EntityPostRequest.EntityPostMethod.Create)
     {
         Entity = role
     };
     request.AppendFieldMap(role.UserID, () => role.UserID);
     request.AppendFieldMap(role.RoleID, () => role.RoleID);
     return request;
 }
Example #3
0
 static EntityPostRequest BuilddeleteRoleRequest(string userid, string roleid)
 {
     UserRoleMap role = new UserRoleMap()
     {
         RoleID = roleid,
         UserID = userid
     };
     EntityPostRequest request = new EntityPostRequest(EntityPostRequest.EntityPostMethod.Delete)
     {
         Entity = role
     };
     request.AppendConditionMap(role.UserID, () => role.UserID);
     request.AppendConditionMap(role.RoleID, () => role.RoleID);
     return request;
 }
Example #4
0
        static EntityPostRequest BuilddeleteUserRoleRequest(string roleid)
        {
            UserRoleMap ur = new UserRoleMap()
            {
                RoleID = roleid
            };

            EntityPostRequest request = new EntityPostRequest(EntityPostRequest.EntityPostMethod.Delete)
            {
                Entity = ur
            };
            request.AppendConditionMap(ur.RoleID, () => ur.RoleID);
            return request;
        }