Exemplo n.º 1
0
        public ActionResult ProductRight()
        {
            var model = new ProductRight();

            model.categories          = new CategoryModel().GetAll();
            model.publishingCompanies = new PublishingCompanyModel().GetPublishingCompanys().Take(10);
            model.authors             = new AuthorModel().GetAuthors().Take(10);
            return(PartialView(model));
        }
Exemplo n.º 2
0
 public UserLevel(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
 {
     try
     {
         _Name = info.GetString("_Name");
     }
     catch
     {
         _Name = "Custom";
     }
     try
     {
         _Rights = (Webb.Data.ProductRight)info.GetValue("_Rights", typeof(Webb.Data.ProductRight));
     }
     catch
     {
         _Rights = (ProductRight)31;
     }
 }
Exemplo n.º 3
0
 public UserLevel(string name, ProductRight right)
 {
     _Name   = name;
     _Rights = right;
 }