public async Task <PartialViewResult> CreateOrEditJobPostModal(int?id) { var input = new NullableIdDto <int> { Id = id }; var output = await _jobPostAppService.GetJobPostForEdit(input); var viewModel = new CreateOrEditJobPostModalViewModel(output); return(PartialView("_CreateOrEditJobPostModal", viewModel)); }
/// <summary> /// 根据id获取进行编辑或者添加的用户信息 /// </summary> /// <param name="id"></param> /// <returns></returns> public async Task <ActionResult> Introduce(int?id) { if (id == null) { return(null); } var output = await _jobPostAppService.GetJobIntroduce((int)id); var viewModel = new CreateOrEditJobPostModalViewModel(output); //if(viewModel.JobPost.SkillRequire!=null) // viewModel.JobPost.SkillRequire= viewModel.JobPost.SkillRequire.Replace("\r\n", "<br />"); //if (viewModel.JobPost.JobDetail != null) // viewModel.JobPost.JobDetail=viewModel.JobPost.JobDetail.Replace("\r\n", "<br />"); //if (viewModel.JobPost.Memo != null) // viewModel.JobPost.Memo=viewModel.JobPost.Memo.Replace("\r\n", "<br />"); return(View("Introduce", viewModel)); }