package service;

import model.advertisement;

public interface AdService {
	public void uploadAd(model.seller seller,String adtitle,String adimage);
	public advertisement checkAd(String adtitle);

}

package service;

import java.util.List;

import model.ad_present;
import model.advertisement;

public interface AdService {
	
	public List<ad_present> getAd();
	
	public List<advertisement> getAdBySellerID(String id);
	
	public int getNumberOfAdBySellerID(String id);
	
	public boolean addAd(advertisement newad);
	
	public advertisement getAdByAdID(String id);
	
	public boolean editAdd(advertisement ad);

}

Update AdService.java