Ejemplo n.º 1
0
 private bool Unsubscribe()
 {
     up.status = false;
     PostAroundServiceClient client = new PostAroundServiceClient();
     int response = client.SetUserPermission(up);
     client.Close();
     if (response == 0)
         return true;
     return false;
 }
Ejemplo n.º 2
0
 private void SetUserEmailPemission(int userId)
 {
     UserPermission up = new UserPermission();
     up.date = DateTime.Now.Date;
     up.permissionId = (int)Enums.Permissions.EmailPermission;
     up.status = true;
     up.userId = userId;
     PostAroundServiceClient client = new PostAroundServiceClient();
     int response = client.SetUserPermission(up);
     client.Close();
 }