public async Task <string> CreateTheatre(TheatreRequestDto requestDto) { var theatre = new Theatre(null, requestDto.Name, requestDto.Capacity); var id = await _theatreRepository.Save(theatre); return(id); }
public async Task <IActionResult> Post([FromBody] TheatreRequestDto requestDto) { var result = await _theatreService.CreateTheatre(requestDto); return(Ok(new { Id = result })); }