摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;using PetsStore.Models;using PetsStore.EntitiesRepositories; namespace PetsStore.Filters{ public class AdminAttribute:AuthorizeAttribute { private UserRepository userRepository = new UserRepository. 阅读全文