public IActionResult DecodeKAdminToken([FromQuery] string token) { try { DecodeKAdminTokenRequestModel requestModel = new DecodeKAdminTokenRequestModel { Token = token }; var validationResult = requestModel.Validate(); if (validationResult.Any()) { return(new CommonActionResult(CommonAPIResponse.BadRequest(validationResult))); } return(new CommonActionResult(MongoConnector.DecodeKAdminLoginToken(requestModel))); } catch (Exception ex) { return(new CommonActionResult(CommonAPIResponse.InternalServerError(ex))); } }