Exemplo n.º 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()));
        }
Exemplo n.º 2
0
        public static HtmlString CreateUserList(ClaimsPrincipal claims, List <UserViewModel> users)
        {
            var user = claims as User;

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

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