Пример #1
0
 public IActionResult Post([FromBody] Music music)
 {
     _musicDal.Add(music);
     return(new StatusCodeResult(201));
 }
Пример #2
0
 public IResult AddMusic(Music music)
 {
     _musicDal.Add(music);
     return(new SuccessResult());
 }