Пример #1
0
        public HttpStatusCodeResult AddUserRole(int? userId, int RoleId)
        {
            UserBl role = new UserBl();            
            role.AddUserRole(int.Parse(userId.ToString()), int.Parse(RoleId.ToString()));         

            return new HttpStatusCodeResult(HttpStatusCode.OK);
        }