// GET: JobOffer/Create
        public async Task <IActionResult> Create()
        {
            var user = await _authService.GetSignedUser(User);

            var viewModel = new CreateJobOfferViewModel
            {
                AuthorId      = user.Id,
                JobCategories = await _jobCategoryService.GetAllCategories(),
                JobTypes      = await _jobTypeService.GetAllTypes()
            };

            return(View(viewModel));
        }
        // GET: JobCategory
        public async Task <IActionResult> Index()
        {
            var jobCategories = await _jobCategoryService.GetAllCategories();

            var vm = _mapper.Map <IEnumerable <JobCategoryViewModel> >(jobCategories);

            return(View(vm));
        }