public IActionResult ChangeProjectId([FromRoute] string websiteid, [FromRoute] string projectid, [FromQuery] string clientid) { if (string.IsNullOrEmpty(clientid) || BasePluginConfigGenerator.GetBasePlugin(clientid).GetClientId() != clientid.Trim().ToUpper()) { return(new CommonActionResult(CommonAPIResponse.UnAuthorized())); } if (string.IsNullOrEmpty(websiteid) || string.IsNullOrEmpty(projectid)) { return(new CommonActionResult(CommonAPIResponse.BadRequest(new ValidationResult("Invalid input paramater")))); } try { return(new CommonActionResult(CommonAPIResponse.OK(MongoConnector.ChangeProjectId(websiteid, projectid)))); } catch (Exception ex) { return(new CommonActionResult(CommonAPIResponse.InternalServerError(ex))); } }