Example #1
0
        public HttpResponseMessage GetClubByShortName(string shortName)
        {
            HttpResponseMessage response = new HttpResponseMessage(HttpStatusCode.OK);

            response.Content = new ObjectContent <ClubModel>(ClubModel.MapClub(ClubBLL.GetClubByShortName(shortName)),
                                                             new JsonMediaTypeFormatter());
            return(response);
        }