// adding a recording - is called from the extension without filling request details yet public static int AddNewRecording(RequestDto requestDto) { try { //Chaining to Record A command that will save the page as HTML requestDto.content += " \nSAVEAS TYPE = HTML FOLDER =D:\\Files FILE =newHtml"; requestDto.recording_stream = Encoding.ASCII.GetBytes(requestDto.content); // add to database return(RequestDAL.AddNewRecording(requestDto)); } catch (Exception) { return(-1); throw; } }