in src/Relecloud.Web.CallCenter.Api/Controllers/UserController.cs [54:72]
public async Task<IActionResult> CreateOrUpdateUserAsync(User model)
{
try
{
if (!ModelState.IsValid)
{
return BadRequest();
}
await this.concertRepository.CreateOrUpdateUserAsync(model);
return Accepted();
}
catch (Exception ex)
{
logger.LogError(ex, "Unhandled exception from UserController.CreateOrUpdateUserAsync");
return Problem("Unable to CreateOrUpdateUserAsync the user");
}
}