//[Authorize(Policy = "RequireAdministratorRole")] public IActionResult Post([FromBody] Vehicle vehicle) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } repository.Create(vehicle); return(Ok()); }
//[Authorize(Policy = "RequireAdministratorRole")] public IActionResult Post([FromBody] Vehicle vehicle) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } repository.Create(vehicle); return(Ok()); }