using _0_Framework.Application; using Company.Domain.ContractAgg; using CompanyManagment.App.Contracts.Contract; using Microsoft.AspNetCore.Mvc; using ServiceHost.BaseControllers; namespace ServiceHost.Areas.Client.Controllers; public class ContractController:ClientBaseController { private readonly IContractApplication _contractApplication; public ContractController(IContractApplication contractApplication) { _contractApplication = contractApplication; } [HttpGet] public async Task>> GetList( GetContractListForClientRequest searchModel) { var res = await _contractApplication .GetContractListForClient(searchModel); return res; } [HttpGet("print/{id}")] public async Task> PrintOne(long id) { var res = await _contractApplication.PrintOneAsync(id); return res; } [HttpGet("print")] public async Task>> PrintAll([FromQuery] List ids) { var res = await _contractApplication.PrintAllAsync(ids); return res; } }