Api/NetinaShop.Infrastructure/RestServices/IRestApiWrapper.cs

13 lines
362 B
C#

using NetinaShop.Infrastructure.Models;
namespace NetinaShop.Infrastructure.RestServices;
public interface IRestApiWrapper : IScopedDependency
{
IKaveNegarRestApi KaveNegarRestApi { get; }
}
public class RestApiWrapper : IRestApiWrapper
{
public IKaveNegarRestApi KaveNegarRestApi => RestService.For<IKaveNegarRestApi>(RestAddress.BaseKaveNegar);
}