コード例 #1
0
 public static CreateSlideShowDto ToDto(this CreateSlideShowViewModel source)
 {
     return(new CreateSlideShowDto
     {
         Link = source.Link,
         ImageFile = source.ImageFile
     });
 }
コード例 #2
0
 public IActionResult Create(CreateSlideShowViewModel model)
 {
     var servieResult = _adminService.CreateSlideShow(model.ToDto());
     return View_Post(servieResult, model);
 }