public async Task CreateJobOffer(JobOfferCreateDto jobOfferCreate) { using (var unitOfWork = UnitOfWorkProvider.Create()) { jobOfferService.Create(jobOfferCreate); await unitOfWork.Commit(); } }
/// <summary> /// Creates jobOffer /// </summary> /// <param name="jobOffer">product</param> public async Task <Guid> CreateJobOfferAsync(JobOfferDto jobOffer) { using (var uow = UnitOfWorkProvider.Create()) { var jobOfferId = jobOfferService.Create(jobOffer); await uow.Commit(); return(jobOfferId); } }