User settings
This commit is contained in:
parent
f2e6045723
commit
b9ba97f5e8
16 changed files with 75 additions and 66 deletions
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue