User settings

This commit is contained in:
Paul Schneider
2025-02-24 23:29:48 +00:00
parent 7524e6323f
commit 76626f3ac4
16 changed files with 76 additions and 67 deletions

View File

@ -22,9 +22,9 @@ namespace Yavsc.ApiControllers
}
[HttpGet("profiles/{actCode}")]
IEnumerable<PerformerProfileViewModel> Profiles(string actCode)
async Task <IEnumerable<PerformerProfileViewModel>> Profiles(string actCode)
{
return dbContext.ListPerformers(billing, actCode);
return await dbContext.ListPerformersAsync(billing, actCode);
}
[HttpPost("query/reject")]
@ -39,7 +39,8 @@ namespace Yavsc.ApiControllers
dbContext.SaveChanges();
return Ok();
}
[HttpPost("query/reject")]
[HttpPost("query/reject")]
public IActionResult AcceptQuery(string billingCode, long queryId)
{
if (billingCode == null) return BadRequest("billingCode");

View File

@ -57,9 +57,9 @@ namespace Yavsc.Controllers
}
[HttpGet("doing/{id}"),AllowAnonymous]
public IActionResult ListPerformers(string id)
public async Task<IActionResult> ListPerformers(string id)
{
return Ok(dbContext.ListPerformers(billing, id));
return Ok(await dbContext.ListPerformersAsync(billing, id));
}
}
}