예제 #1
0
 public async Task <IActionResult> Post([FromBody] TrackDto item)
 {
     try
     {
         return(Ok(await _repo.CreatAsync(item)));
     }
     catch (Exception ex)
     {
         return(StatusCode(500, ex));
     }
 }