示例#1
0
        public static HtmlString CreateUsersRightsTable(ClaimsPrincipal claims, EditProductViewModel model)
        {
            var user = claims as User;

            StringBuilder result = new StringBuilder();

            result.Append(TableHelper.CreateTable(model.ProductName, user, model.UsersRights));

            return(new HtmlString(result.ToString()));
        }
示例#2
0
        public static HtmlString CreateUserList(ClaimsPrincipal claims, List <UserViewModel> users)
        {
            var user = claims as User;

            return(new HtmlString(TableHelper.CreateTable(user, users)));
        }
示例#3
0
        public static HtmlString CreateProductList(ClaimsPrincipal claims, List <ProductViewModel> products)
        {
            var user = claims as User;

            return(new HtmlString(TableHelper.CreateTable(user, products)));
        }