public Artist Add(Artist artist) { try { var bc = new ArtistBusiness(); return(bc.AgregarArtista(artist)); } catch (Exception ex) { var httpError = new HttpResponseMessage() { StatusCode = (HttpStatusCode)422, ReasonPhrase = ex.Message }; throw new HttpResponseException(httpError); } }