{
try
{
SecurityPrincipal sp = new SecurityPrincipal()
{
Type = SecurityPrincipalType.User,/*Eger takıma atama yapılacaksa SecurityPrincipalType.User */
PrincipalId = assignee
};
AssignRequest assign = null;
if (entityname.Trim().ToLower().Equals("account"))
{
TargetOwnedAccount account= new TargetOwnedAccount ()
{
EntityId = targetid
};
assign = new AssignRequest
{
Assignee = sp,
Target = account
};
}
if (assign != null)
service.Execute(assign);
}
catch (Exception)
{
}
}
Hiç yorum yok:
Yorum Gönder