示例#1
0
 public async Task <ActionResult <DirectorDTO> > AddDirector(DirectorDTO director)
 {
     try
     {
         return(new OkObjectResult(await _movieService.AddDirector(director)));
     }
     catch (System.Exception ex)
     {
         return(new StatusCodeResult(500));
     }
 }