no message
This commit is contained in:
parent
d8d3838d5c
commit
9aa3c4dcb4
1 changed files with 4 additions and 1 deletions
|
|
@ -221,7 +221,10 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
|||
public async Task<ActionResult<ResponseObject>> GetDetailByUser(Guid id)
|
||||
{
|
||||
var getWorkflow = await _permission.GetPermissionAPIWorkflowAsync(id.ToString(), "SYS_RESIGN");
|
||||
if (getWorkflow == false)
|
||||
var createdUserId = await _context.RetirementResigns.AsQueryable()
|
||||
.Where(x => x.CreatedUserId == UserId ?? "")
|
||||
.FirstOrDefaultAsync();
|
||||
if (getWorkflow == false && createdUserId ==null)
|
||||
{
|
||||
var getPermission = await _permission.GetPermissionAPIAsync("GET", "SYS_RESIGN");
|
||||
var jsonData = JsonConvert.DeserializeObject<JObject>(getPermission);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue