Exemplo n.º 1
0
        public HttpResponseMessage GetModules()
        {
            HttpResponseMessage response     = new HttpResponseMessage(HttpStatusCode.OK);
            UserPrincipal       loggedInUser = (UserPrincipal)HttpContext.Current.User;

            response.Content = new ObjectContent <List <ModuleModel> >(ModuleModel.MapModules(
                                                                           AccessrightBLL.GetModules(loggedInUser.AccountSession.ClubId)), new JsonMediaTypeFormatter());
            return(response);
        }