kreta/Kreta.WebApi/Ellenorzo/Kreta.Ellenorzo.BL/VN/Csatolmany/CsatolmanyFacade.cs
2024-03-13 00:33:46 +01:00

22 lines
816 B
C#

using System;
using System.Net.Http;
using Kreta.BusinessLogic.Interfaces;
using Kreta.Ellenorzo.BL.VN.Ellenorzo;
using Kreta.Ellenorzo.Domain.VN.Common;
using Kreta.Ellenorzo.Domain.VN.UniqueIdentifier;
namespace Kreta.Ellenorzo.BL.VN.Ora
{
public class CsatolmanyFacade : EllenorzoFacade
{
private readonly IFileServiceHelper _fileServiceHelper;
public CsatolmanyFacade(MobileUser mobileUser, IFileServiceHelper fileServiceHelper) : base(mobileUser)
{
_fileServiceHelper = fileServiceHelper ?? throw new ArgumentNullException(nameof(fileServiceHelper));
}
public HttpResponseMessage GetCsatolmany(CsatolmanyUid uid)
=> RunSubquery(() => CsatolmanySubqueries.GetCsatolmany(DefaultConnectionParameters, _fileServiceHelper, uid));
}
}