public IActionResult CheckWebsiteTagAvailability(string websitetag, [FromQuery] string clientId, [FromQuery] string projectId) { var developerId = AuthHelper.AuthorizeRequest(Request); if (string.IsNullOrEmpty(developerId)) { return(new CommonActionResult(CommonAPIResponse.UnAuthorized())); } try { try { if (String.IsNullOrEmpty(clientId) && !String.IsNullOrEmpty(projectId)) { clientId = MongoConnector.GetClientIdFromProjectId(projectId); } } catch { } return(new CommonActionResult(MongoConnector.CheckWebsiteTagAvailability(websitetag, clientId))); } catch (Exception ex) { return(new CommonActionResult(CommonAPIResponse.InternalServerError(ex))); } }