Rename ConcurrencyToken to Concurrency

This commit is contained in:
2020-05-13 20:00:02 +00:00
parent 539d590ce8
commit 7e48d087ce
2 changed files with 10 additions and 10 deletions

View File

@@ -51,10 +51,10 @@ namespace AyaNova.Api.Controllers
/// Get form customizations for Client form display
/// </summary>
/// <param name="formkey">The official form key used by AyaNova</param>
/// <param name="concurrencyToken">A prior concurrency token used to check if there are any changes without using up bandwidth sending unnecessary data</param>
/// <param name="concurrency">A prior concurrency token used to check if there are any changes without using up bandwidth sending unnecessary data</param>
/// <returns>A single FormCustom or nothing and a header 304 not modified</returns>
[HttpGet("{formkey}")]
public async Task<IActionResult> GetFormCustom([FromRoute] string formkey, [FromQuery] uint? concurrencyToken)
public async Task<IActionResult> GetFormCustom([FromRoute] string formkey, [FromQuery] uint? concurrency)
{
if (serverState.IsClosed)
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
@@ -75,9 +75,9 @@ namespace AyaNova.Api.Controllers
return NotFound(new ApiErrorResponse(ApiErrorCode.NOT_FOUND));
//If concurrency token specified then check if ours is newer
if (concurrencyToken != null)
if (concurrency != null)
{
if (o.Concurrency == concurrencyToken)
if (o.Concurrency == concurrency)
{
//returns a code 304 (NOT MODIFIED)
return StatusCode(304);