public ActionResult <Artist> Get() { try { return(Ok(_service.GetAll())); } catch (Exception e) { return(BadRequest(e.Message)); } }
public ActionResult <IEnumerable <Artist> > GetAll() { try { IEnumerable <Artist> artists = _service.GetAll(); return(Ok(artists)); } catch (Exception e) { return(BadRequest(e.Message)); } }