User settings
This commit is contained in:
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user