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())); }
public static HtmlString CreateUserList(ClaimsPrincipal claims, List <UserViewModel> users) { var user = claims as User; return(new HtmlString(TableHelper.CreateTable(user, users))); }
public static HtmlString CreateProductList(ClaimsPrincipal claims, List <ProductViewModel> products) { var user = claims as User; return(new HtmlString(TableHelper.CreateTable(user, products))); }