// 创建
        public async Task <IActionResult> Create(Guid id)
        {
            var resume = await _resumeManager.FindByIdAsync(id);

            if (resume == null)
            {
                return(NotFound(id));
            }
            var model = Mapper.Map <CreateOrEditInterviewViewModel>(resume);

            return(View(model));
        }
Beispiel #2
0
        public async Task <IActionResult> Edit(Guid id)
        {
            var resume = await _resumeManager.FindByIdAsync(id);

            if (resume == null)
            {
                return(NotFound(id));
            }
            var model = Mapper.Map <CreateOrEditResumeViewModel>(resume);

            return(await BuildCreateOrEditDisplayAsync(model));
        }