private IHttpResponse ReturnIfResource(string path) { // string pathTofile = $"../../..{path}"; bool fileExist = File.Exists(pathTofile); if (!fileExist) return new HttpResponse(HttpResponseStatusCode.NotFound); string fileToBytes = File.ReadAllText(pathTofile); var bytesTransform = Encoding.UTF8.GetBytes(fileToBytes); return new InlineResourceResult(bytesTransform, HttpResponseStatusCode.Found); }