コード例 #1
0
 public async Task CreateJobOffer(JobOfferCreateDto jobOfferCreate)
 {
     using (var unitOfWork = UnitOfWorkProvider.Create())
     {
         jobOfferService.Create(jobOfferCreate);
         await unitOfWork.Commit();
     }
 }
コード例 #2
0
        /// <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);
            }
        }