public async Task <IActionResult> Create([FromBody] CreateMagazineView createMagazine) { await _magazineService.Create(createMagazine); return(Ok()); }
public async Task Create(CreateMagazineView createMagazine) { await _magazineRepository.Create(new Magazine { Title = createMagazine.Title, Price = createMagazine.Price });; }