public HttpResponseMessage GetClub() { HttpResponseMessage response = new HttpResponseMessage(HttpStatusCode.OK); try { UserPrincipal loggedInUser = (UserPrincipal)HttpContext.Current.User; response.Content = new ObjectContent <ClubModel>(ClubModel.MapClub(ClubBLL.GetClub(loggedInUser.AccountSession.ClubId)), new JsonMediaTypeFormatter()); } catch (Exception ex) { LogHelper.LogError(string.Format("Error getting club..."), ex, 0); } return(response); }