2023-05-15 19:26:52 +04:00
|
|
|
|
using HardwareShopContracts.BindingModels;
|
|
|
|
|
using HardwareShopContracts.BusinessLogicsContracts;
|
|
|
|
|
using HardwareShopContracts.SearchModels;
|
|
|
|
|
using HardwareShopContracts.ViewModels;
|
2023-05-15 22:33:12 +04:00
|
|
|
|
using HardwareShopRestApi.Controllers;
|
2023-05-15 19:26:52 +04:00
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
2023-05-15 22:33:12 +04:00
|
|
|
|
using System.Xml.Linq;
|
2023-05-15 19:26:52 +04:00
|
|
|
|
|
|
|
|
|
namespace HardwareShopRestApi.Controllers
|
|
|
|
|
{
|
|
|
|
|
[Route("api/[controller]/[action]")]
|
|
|
|
|
[ApiController]
|
2023-05-15 22:33:12 +04:00
|
|
|
|
public class PurchaseController : Controller
|
2023-05-15 19:26:52 +04:00
|
|
|
|
{
|
|
|
|
|
private readonly ILogger _logger;
|
|
|
|
|
|
2023-05-15 22:33:12 +04:00
|
|
|
|
private readonly IPurchaseLogic _purchaseLogic;
|
2023-05-15 19:26:52 +04:00
|
|
|
|
|
2023-05-15 22:33:12 +04:00
|
|
|
|
public PurchaseController(IPurchaseLogic purchaseLogic, ILogger<UserController> logger)
|
2023-05-15 19:26:52 +04:00
|
|
|
|
{
|
|
|
|
|
_logger = logger;
|
2023-05-15 22:33:12 +04:00
|
|
|
|
_purchaseLogic = purchaseLogic;
|
2023-05-15 19:26:52 +04:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-05-15 22:33:12 +04:00
|
|
|
|
|
|
|
|
|
|