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()); }
public Task UpdatePinHashAsync(UpdatePinHashModel model) { return(_runner.RunAsync(() => _employeesApi.UpdatePinHashAsync(model))); }