public IActionResult Put(int id, [FromBody] Author value)
        {
            if (value == null)
            {
                return(BadRequest());
            }


            var note = _authorsRepository.GetById(id);


            if (note == null)
            {
                return(NotFound());
            }


            value.authorid = id;
            _authorsRepository.Update(value);


            return(NoContent());
        }