public IActionResult Get(int id)
        {
            var structure = _structureRepository.GetStructureById(id);

            var currentUserProfile = GetCurrentUserProfile();

            if (structure != null)
            {
                var upr = _reportRepository.GetUserProfileReportById(structure.ReportId, currentUserProfile.Id);


                if (upr != null)
                {
                    return(Ok(structure));
                }
                else
                {
                    return(Unauthorized());
                }
            }
            else
            {
                return(BadRequest());
            }
        }
        public StructureDetails GetStructureById(int id)
        {
            StructureDetails structure = _structureRepository.GetStructureById(id);

            if (structure == null)
            {
                return(null);
            }

            return(structure);
        }