示例#1
0
        public async Task <PartialViewResult> CreateContentModal(int?id)
        {
            ClassifiedContentDto content = new ClassifiedContentDto();

            if (id.HasValue)
            {
                content = await _contentAppService.Get(new ClassifiedContentDto { Id = id.Value });
            }
            var viewModel = new CreateOrEditModalViewModel(content);

            return(PartialView("_CreateOrEditContentModal", viewModel));
        }
 public CreateOrEditModalViewModel(ClassifiedContentDto output)
 {
     output.MapTo(this);
 }