예제 #1
0
        public async Task <IActionResult> UpdatePinHash([FromBody] UpdatePinHashModel model)
        {
            try
            {
                await _employeeCredentialsService.UpdatePinHashAsync(model.Email, model.PinHash);
            }
            catch (InvalidOperationException e)
            {
                _log.Warning($"{e.Message}, request: {model.ToJson()}", e);

                return(BadRequest(ErrorResponse.Create(e.Message)));
            }

            return(NoContent());
        }
예제 #2
0
 public Task UpdatePinHashAsync(UpdatePinHashModel model)
 {
     return(_runner.RunAsync(() => _employeesApi.UpdatePinHashAsync(model)));
 }