public IActionResult GetStructure()
 {
     try {
         List <StructureDetails> response = new  List <StructureDetails>();
         response = _structureService.GetStructures();
         return(Ok(response));
     } catch (Exception e) {
         Util.LogError(e);
         return(StatusCode(StatusCodes.Status500InternalServerError, new ErrorClass()
         {
             code = StatusCodes.Status500InternalServerError.ToString(), message = "Something went wrong"
         }));
     }
 }