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)); }
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; } }
public UserLevel(string name, ProductRight right) { _Name = name; _Rights = right; }