Ejemplo n.º 1
0
        public async Task <ActionResult> GetPinSettingsAlternativeAsync([FromRoute] string opcoid, [FromRoute] string householdid, [FromRoute] uint profileid)
        {
            var req = new Domain.Models.RequestorModel()
            {
                OpCoId      = opcoid,
                HouseholdId = householdid,
                ProfileId   = profileid
            };
            var result = await _processor.ProcessRequestAsync(req);

            return(Ok(result));
        }
Ejemplo n.º 2
0
        public async Task <ActionResult> GetPinSettingsAsync([FromRoute] string opcoid, [FromBody] DataModel.RequestorModel requestor)
        {
            var req = new Domain.Models.RequestorModel()
            {
                OpCoId      = opcoid,
                HouseholdId = requestor.HouseholdId,
                ProfileId   = requestor.ProfileId
            };
            var result = await _processor.ProcessRequestAsync(req);

            return(Ok(result));
        }
Ejemplo n.º 3
0
        public async Task <IActionResult> UnlockPinAsync([FromRoute] string opcoid, [FromRoute] string householdid, [FromRoute] uint profileid, [FromRoute] uint pintype, [FromBody] DataModel.PinLockModel request)
        {
            var requestor = new Domain.Models.RequestorModel()
            {
                HouseholdId = householdid,
                ProfileId   = profileid,
                OpCoId      = opcoid,
                PinType     = pintype
            };
            await _lockPinProcessor.ProcessRequestAsync(requestor, false);

            return(Ok());
        }
Ejemplo n.º 4
0
        public async Task <IActionResult> DeletePinAsync([FromRoute] string opcoid, [FromRoute] string householdid, [FromRoute] uint profileid, [FromRoute] uint pintype)
        {
            var requestor = new Domain.Models.RequestorModel()
            {
                HouseholdId = householdid,
                ProfileId   = profileid,
                OpCoId      = opcoid,
                PinType     = pintype
            };
            await _deletePinProcessor.ProcessRequestAsync(requestor);

            return(Ok());
        }
Ejemplo n.º 5
0
        public async Task <IActionResult> CreatePinAsync([FromRoute] string opcoid, [FromBody] DataModel.PinCreateModel request)
        {
            var requestor = new Domain.Models.RequestorModel()
            {
                HouseholdId = request.HouseholdId,
                ProfileId   = request.ProfileId,
                OpCoId      = opcoid,
                PinType     = request.PinType
            };
            await _createPinProcessor.ProcessRequestAsync(requestor, request.NewPin);

            return(Ok());
        }