public void PosaljiDokument(Document dokument)
 {
     using (var ms = new MemoryStream())
     {
         dokument.SaveDocument(ms, DocumentFormat.Rtf);
         ms.Seek(0, SeekOrigin.Begin);
         var clanak = new Clanak {
             Raw = ms.GetBuffer()
         };
         using (var svc = new TestServiceClient())
         {
             svc.PosaljiClanakCompleted += (s, e) =>
             {
                 OnSendNotification(new NotificationSaved());
             };
             svc.PosaljiClanakAsync(ObjectMapper.Map(clanak));
         }
     }
 }
 public static WebServices.Clanak Map(Clanak clanak)
 {
     return(Mapper.Map <WebServices.Clanak>(clanak));
 }