19 lines
422 B
C#
19 lines
422 B
C#
using System;
|
|
using System.IO;
|
|
|
|
namespace Landmark.OLA.Application.Services
|
|
{
|
|
public class PdfService : IPdfService
|
|
{
|
|
public byte[] GetFileBytes(string path)
|
|
{
|
|
if (!string.IsNullOrWhiteSpace(path) && File.Exists(path))
|
|
{
|
|
return File.ReadAllBytes(path);
|
|
}
|
|
|
|
throw new ArgumentException($"Path {path} must exist.");
|
|
}
|
|
}
|
|
}
|