public IActionResult GetAll()
        {
            var result = _imagesService.GetAll();

            if (result.Success)
            {
                return(Ok(result));
            }
            return(BadRequest(result));
        }
 public async Task <ActionResult <List <ImageModel> > > Get()
 {
     return(Ok(await _imagesService.GetAll()));
 }