Esempio n. 1
0
 public async Task <ActionResult <ExtendedActorDTO> > AddActor(ExtendedActorDTO actor)
 {
     try
     {
         return(new OkObjectResult(await _movieService.AddActor(actor)));
     }
     catch
     {
         return(new StatusCodeResult(500));
     }
 }