public DtoApiStringResponse ReadFileText(DtoReadFileText dto) { return(new DtoApiStringResponse { Value = new FilesystemServices().ReadAllText(dto.Path) }); }
public string ReadBootFileText(string url, string serverName, string interComKey, string path) { var dto = new DtoReadFileText(); dto.Path = path; Request.Method = Method.POST; Request.Resource = "Imaging/ReadFileText"; Request.AddJsonBody(dto); var responseData = new ApiRequest(new Uri(url)).ExecuteHMACInterCom <DtoApiStringResponse>(Request, serverName, interComKey); return(responseData.Value); }