Esempio n. 1
0
        // 创建
        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));
        }
Esempio n. 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));
        }