/// <summary> /// GetAsync jobOffer according to ID /// </summary> /// <param name="id">ID of the jobOffer</param> /// <returns>The jobOffer with given ID, null otherwise</returns> public async Task <JobOfferDto> GetJobOfferAsync(Guid id) { using (UnitOfWorkProvider.Create()) { return(await jobOfferService.GetAsync(id)); } }
public async Task <JobOfferDto> GetOffer(int offerId) { using (UnitOfWorkProvider.Create()) { return(await jobOfferService.GetAsync(offerId)); } }