[HttpGet] //Can only be called with an get request. Ok is needed and gives status of request and objedct public IActionResult GetPublishers() { return(Ok(_publisherRepository.List())); }