//[Authorize(Roles = Authorize.Admin)] public IActionResult Post([FromBody] ActorRequest actorRequest) { if (actorRequest == null) { return(StatusCode(400, ModelState)); } if (!ModelState.IsValid) { return(StatusCode(400, ModelState)); } try { var actor = actorRepository.CreateActor(actorRequest); return(Ok(actor)); } catch (Exception e) { throw e; } }