Exemple #1
0
        public Artist Find(int id)
        {
            try
            {
                var    am     = new ArtistBusiness();
                Artist artist = am.Find(id);

                return(artist);
            }
            catch (Exception ex)
            {
                var httpError = new HttpResponseMessage()
                {
                    StatusCode = (HttpStatusCode)422,
                    Content    = new StringContent(ex.Message),
                };

                throw new HttpResponseException(httpError);
            }
        }