public IActionResult GetImageDetails() { try { var imageList = _healthservice.GetImageDetails(); return(new JsonResult(imageList)); } catch (Exception ex) { log.Info(ex); return(StatusCode((int)HttpStatusCode.InternalServerError)); } }