public IActionResult Create()
        {
            TempData["active"] = "resume";
            ResumeAddDto resumeAddDto = new ResumeAddDto();

            //resumeAddDto.CategoryList = new SelectList(await _categoryService.GetListAsync(), "Id", "Name");

            return(View(resumeAddDto));
        }
        public async Task <IActionResult> Create(ResumeAddDto resumeAddDto)
        {
            if (ModelState.IsValid)
            {
                await _resumeService.InsertAsync(new Resume
                {
                    Title       = resumeAddDto.Title,
                    EndedDate   = resumeAddDto.StartedDate,
                    StartedDate = resumeAddDto.EndedDate,
                    IsDraft     = resumeAddDto.IsDraft,
                    //SubCategoryId = resumeAddDto.SubCategoryId,
                    Text        = resumeAddDto.Text,
                    IsEducation = resumeAddDto.IsEducation,
                    IsWork      = resumeAddDto.IsWork
                });

                return(RedirectToAction("Index"));
            }
            //resumeAddDto.CategoryList = new SelectList(await _categoryService.GetListAsync(), "Id", "Name");

            return(View(resumeAddDto));
        }