Пример #1
0
        public async Task <ResultServiceModel <DummyModel> > CheckPin(string pin, string email)
        {
            CheckPinCommand model = new CheckPinCommand()
            {
                Pin   = pin,
                Email = email
            };
            string url = serviceUrl + "CheckPin";

            return(await Post <DummyModel>(url, model));
        }
Пример #2
0
        public IActionResult CheckPin([FromBody] CheckPinCommand checkPin)
        {
            bool isCorrect = _authService.CheckPin((string)checkPin.Pin, (string)checkPin.Email);

            return(isCorrect ? Ok() : (IActionResult)BadRequest());
        }