public IActionResult DeletePage(string projectid, [FromQuery] string user, [FromQuery] string resourcename = null, [FromQuery] string resourcepath = null)
        {
            try
            {
                var requestModel = new DeleteResourceRequestModel
                {
                    ProjectId  = projectid,
                    UserEmail  = user,
                    SourcePath = resourcepath,
                    SourceName = resourcename
                };
                var validationResult = requestModel.Validate();
                if (validationResult.Any())
                {
                    return(BadRequest(validationResult));
                }

                return(Ok(MongoConnector.DeleteResource(requestModel)));
            }
            catch (Exception ex)
            {
                return(BadRequest(ex));
            }
        }