Esempio n. 1
0
 public static CreateSlideShowDto ToDto(this CreateSlideShowViewModel source)
 {
     return(new CreateSlideShowDto
     {
         Link = source.Link,
         ImageFile = source.ImageFile
     });
 }
 public IActionResult Create(CreateSlideShowViewModel model)
 {
     var servieResult = _adminService.CreateSlideShow(model.ToDto());
     return View_Post(servieResult, model);
 }