示例#1
0
        //Get roles for application
        public static DAplRoles GetApplicationRoles(string userName, string apl)
        {
            DAplRoles AplRoles = new DAplRoles()
            {
                Pravice = DAOService.GetPravice(userName, apl)
            };

            return(AplRoles);
        }
示例#2
0
        public HttpResponseMessage Auth(string uporabnikID, string apl)
        {
            AuthServiceClient authService = new AuthServiceClient();

            DAplRoles roles = authService.GetApplicationRoles(uporabnikID, apl);

            HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, roles);

            return(response);
        }