예제 #1
0
 public void ButtonClicked(int id, int button)
 {
     try
     {
         using (var manager = new TrackActivityManager())
         {
             manager.SetButtonClicked(id, button);
         }
     }
     catch (Exception ex)
     {
         //-----------------------------------------------------------------------------adderror to db---------------------------------------------------------------------------------------------
     }
 }
예제 #2
0
 public void OpenMail(int id)
 {
     try
     {
         using (var manager = new TrackActivityManager())
         {
             manager.OpenMail(id);
         }
         //HttpResponseMessage response = new HttpResponseMessage();
         //Byte[] b = (GetImageByteArray());
         //response.Content = new ByteArrayContent(b);
         //response.Content.LoadIntoBufferAsync(b.Length).Wait();
         //response.Content.Headers.ContentType = new MediaTypeHeaderValue("image/jpeg");
         //return response;
     }
     catch (Exception ex)
     {
         //-----------------------------------------------------------------------------adderror to db---------------------------------------------------------------------------------------------
     }
 }