public Image GetById(int id)
 {
     using var context = new ImageDbContext(_connectionString);
     return(context.Images.FirstOrDefault(i => i.Id == id));
 }
 public List <Image> GetAll()
 {
     using var context = new ImageDbContext(_connectionString);
     return(context.Images.OrderByDescending(i => i.TimeUploaded).ToList());
 }