public IActionResult GetObjectLink([FromRoute] string websiteid, [FromRoute] string objectid, [FromRoute] string clientid, [FromQuery] string classname, [FromQuery] string schemaid = null) { if (string.IsNullOrEmpty(clientid) || BasePluginConfigGenerator.GetBasePlugin(clientid).GetClientId() != clientid.Trim().ToUpper()) { return(new CommonActionResult(CommonAPIResponse.UnAuthorized())); } if (string.IsNullOrEmpty(classname)) { return(new CommonActionResult(CommonAPIResponse.BadRequest(new System.ComponentModel.DataAnnotations.ValidationResult("Class name can not be empty")))); } try { return(new CommonActionResult(MongoConnector.GenerateObjectUrl(websiteid, classname, objectid, schemaid))); } catch (Exception ex) { return(new CommonActionResult(CommonAPIResponse.InternalServerError(ex))); } }