job-market/JobMarket/Services/Abstract/IJobOfferService.cs
2024-05-15 15:28:34 +03:00

28 lines
705 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using JobMarket.Models;
namespace JobMarket.Services.Abstract
{
public interface IJobOfferService
{
Task<IList<JobOffer>> GetAllOffers();
Task<JobOffer> GetOfferById(string id);
Task<bool> Add(JobOffer item);
Task<bool> Edit(JobOffer item);
Task<bool> Delete(JobOffer offer);
Task<IEnumerable<JobOffer>> GetMostPopularOffers();
Task<IEnumerable<JobOffer>> GetOffersContainingPhrase(string phrase);
Task<bool> CanUserEditOffer(string userId, string offerId);
Task<bool> IncreaseOfferViews(JobOffer offer);
Task<bool> Delete(string id);
Task CanUserEditOffer(object ıd, object jobOfferId);
}
}