public async Task <IActionResult> PostChangePinAltAsync([FromRoute] string opcoid, [FromRoute] string householdid, [FromRoute] uint profileid, [FromRoute] uint pintype, [FromBody] PinChangeModel pindetails) { var data = new ChangePinParameters() { Requestor = new Domain.Models.RequestorModel() { HouseholdId = householdid, ProfileId = profileid, OpCoId = opcoid }, PinType = pintype, OldPinHash = pindetails.OldPinHash, NewPin = pindetails.NewPin }; await _pinChangeProcessor.ProcessRequestAsync(data); return(Ok()); }
public async Task <IActionResult> PostChangePinAsync([FromRoute] string opcoid, [FromBody] DataModel.PinChangeRequestModel request) { var data = new ChangePinParameters() { Requestor = new Domain.Models.RequestorModel() { HouseholdId = request.Requestor.HouseholdId, ProfileId = request.Requestor.ProfileId, OpCoId = opcoid }, PinType = request.PinType, OldPinHash = request.OldPinHash, NewPin = request.NewPin }; await _pinChangeProcessor.ProcessRequestAsync(data); return(Ok()); }