public enum Section
{
PersonalDetails = 1,
GoalsAspirations,
PersonalProfile,
BusinessExpectations,
PersonalityAttitude,
RoleSelection,
FinancialProfile
}
//Controller
Section section = (Section)System.Enum.Parse(typeof(Section), 5);
{
PersonalDetails = 1,
GoalsAspirations,
PersonalProfile,
BusinessExpectations,
PersonalityAttitude,
RoleSelection,
FinancialProfile
}
//Controller
Section section = (Section)System.Enum.Parse(typeof(Section), 5);
switch (section)
{
case Section.PersonalityAttitude:
break;
case Section.RoleSelection:
break;
case Section.FinancialProfile:
break;
default:
break;
}
//To get in int
Model.SectionId = (int)section;
{
case Section.PersonalityAttitude:
break;
case Section.RoleSelection:
break;
case Section.FinancialProfile:
break;
default:
break;
}
//To get in int
Model.SectionId = (int)section;

