...
This commit is contained in:
@@ -3,6 +3,7 @@ using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Shared.DTOs.Serch;
|
||||
using Shared.DTOs;
|
||||
using System.Xml.Linq;
|
||||
|
||||
namespace Back.Controllers
|
||||
{
|
||||
@@ -25,8 +26,11 @@ namespace Back.Controllers
|
||||
var user = await _servUser.GetUserByUserID(Convert.ToInt32(UserID));
|
||||
// if (!await _checkPermission.AllowSYSGetCOD(Convert.ToInt32(UserID), user.RolUsers.First().CompanyID)) return Forbid("شما دسترسی به خواندن اطلاعات کالا را نداربد");
|
||||
return Ok(await _servCOD.GetCODs(user.RolUsers.First().CompanyID, itemSerch));
|
||||
|
||||
|
||||
}
|
||||
[HttpGet("GetUnits")]
|
||||
public async Task<ActionResult<IdName<int>>> GetUnits()
|
||||
{
|
||||
return Ok(await _servCOD.GetUnits());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user