public HtmlString AddNewSubType(string subTypeName, int index, int projectTypeId) { var newIndex = projectSubTypeService.Add(new ProjectSubType() { Name = subTypeName, ProjectTypeId = projectTypeId }); return(new HtmlString(string.Format(@" <input type=""hidden"" name=""ProjectSubType[{1}].Id"" value=""{2}"" /> <input type=""hidden"" name=""ProjectSubType[{1}].Name"" value=""{0}"" /> <span class=""participant-skill-item"">{0}</span>" , subTypeName, index, newIndex))); }