[HttpPost, Authorize(Roles = "l")]//, ] public ActionResult <VolumeDTO> AddVolume([FromBody] int id) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } VolumeDTO volume = _bookService.AddVolume(id); return(CreatedAtAction("AddVolume", new { id = volume.VolumeId }, volume)); }