Exemplo n.º 1
0
        public HttpResponseMessage GetAllRoles()
        {
            var roleType  = roleTypeRepository.GetAllRolesOnly();
            var formatter = RequestFormat.JsonFormaterString();

            return(Request.CreateResponse(HttpStatusCode.OK, roleType, formatter));
        }