This commit is contained in:
2023-12-05 20:21:21 +02:00
parent 045f60e373
commit 775146ee86
12 changed files with 307 additions and 48 deletions
@@ -5,10 +5,10 @@ using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Authorization;
using Models.Currency;
using Services.Currency;
using MyOffice.Web.Infrastructure.Attributes;
[Authorize]
[ApiController]
[Route("api/[controller]")]
[DefaultFromBody]
public class GeneralController : BaseApiController
{
private readonly CurrencyService _currencyService;
@@ -23,8 +23,7 @@ public class GeneralController : BaseApiController
_mapper = mapper;
}
[HttpGet("~/api/general/currencies")]
public ObjectResult Get()
public ObjectResult GetGlobalCurrencies()
{
var list = _currencyService.GetGlobalAll();