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)); }
public IActionResult CheckPin([FromBody] CheckPinCommand checkPin) { bool isCorrect = _authService.CheckPin((string)checkPin.Pin, (string)checkPin.Email); return(isCorrect ? Ok() : (IActionResult)BadRequest()); }