Beispiel #1
0
 // update request details - Recording was done through the extension
 public static RequestDto UpdateRequestFromTheExtension(RequestDto requestDto)
 {
     try
     {
         if (requestDto.recording_id == new Guid())
         {
             RequestDto requestsDto = RequestDAL.FillInDataRequest(requestDto);
             Status     status      = Run(Encoding.UTF8.GetString(requestsDto.recording_stream), "");
             if (status == Status.sOk)
             {
                 string newPlay = File.ReadAllText("D:\\Files\\newHtml.htm");
                 RequestDAL.UpdateHtmlFile(requestsDto, newPlay);
             }
         }
     }
     catch (Exception)
     {
         throw;
     }
     return(requestDto);
 }