public void AddLike(int id)
 {
     using var context = new ImagesDBContext(_connectionString);
     context.Images.FirstOrDefault(i => i.Id == id).Likes++;
     context.SaveChanges();
 }
 public void AddImage(Image i)
 {
     using var context = new ImagesDBContext(_connectionString);
     context.Images.Add(i);
     context.SaveChanges();
 }