grafic.web 0 Newbie Poster

Hi, i did create the following class in my Models folder and i create the Styles controller, everuthing is fine... but muy problem is the following.

When i clicK on the link style i got my list of styles and when i click in one style i got the idin the address bar :

localhost/style/1

i didt set a "Type" and a "SubType" and i would love to see them on my bar address, how can i do?

localhost/style/Type/SubType/1

    using System;
    using System.ComponentModel.DataAnnotations;
    using System.Collections.Generic;
    using System.Data.Entity;
    using System.Linq;
    using System.Web;

    namespace Collectionhair.Models
    {
        public class Style
        {
            public int ID { get; set; }

            [Display(Name = "Date Pubblication")]
            [DataType(DataType.Date)]
            [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
            public DateTime ReleaseDate { get; set; }

            public string Type { get; set; }
            public string SubType { get; set; }

            [StringLength(400, MinimumLength = 3)]
            public string Title { get; set; }
            [StringLength(1000, MinimumLength = 3)]
            public string SubTitle { get; set; }
            public string Body { get; set; }


            public string Photo { get; set; }

        }

        public class db514717629DBContext : DbContext
        {
            public DbSet<Style> db514717629 { get; set; }
        }
    }
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.