// GET: JobOfferProposition/CreateShowDetails/5
        public async Task <IActionResult> CreateShowDetails(string id)
        {
            var response = await _jobOfferService.GetByIdAsync(id);

            var propositionMapped = Mapper.Map <List <JobOfferJobOfferPropositionMvcDto> >(response.Propositions);

            var viewModel = new CreateDetailsJobOfferPropositionMvcViewModel()
            {
                JobOfferId = id, Propositions = propositionMapped
            };

            return(View(viewModel));
        }
        public async Task <IActionResult> CreateShowDetails(CreateDetailsJobOfferPropositionMvcViewModel createDetailsJobOfferViewModel)
        {
            if (ModelState.IsValid)
            {
                await _jobOfferPropositionService.AddAsync(createDetailsJobOfferViewModel.JobOfferId, createDetailsJobOfferViewModel.Content);

                ModelState.Clear();
            }

            var jobOffer = await _jobOfferService.GetByIdAsync(createDetailsJobOfferViewModel.JobOfferId);

            var propositionMapped = Mapper.Map <List <JobOfferJobOfferPropositionMvcDto> >(jobOffer.Propositions);

            return(View(new CreateDetailsJobOfferPropositionMvcViewModel()
            {
                JobOfferId = createDetailsJobOfferViewModel.JobOfferId, Propositions = propositionMapped
            }));
        }