This commit is contained in:
mmrbnjd
2024-05-28 15:03:08 +03:30
parent 4e6f8a5c40
commit 325a2bad5e
15 changed files with 193 additions and 116 deletions

View File

@@ -6,10 +6,12 @@ using Shared.DTOs;
using System.Xml.Linq;
using Back.Common;
using Back.Validations;
using Microsoft.AspNetCore.Authorization;
namespace Back.Controllers
{
[Route("api/[controller]")]
[Authorize]
[ApiController]
public class CODController : ControllerBase
{
@@ -45,6 +47,7 @@ namespace Back.Controllers
}
[HttpGet("GetUnits")]
[AllowAnonymous]
public async Task<ActionResult<List<IdName<int>>>> GetUnits()
{
return Ok(await _servCOD.GetUnits());