public static string GetAngularController(CompetencyArea area) { switch (area) { case CompetencyArea.ConsultingSkills: return("ConsultingSkillsController"); case CompetencyArea.DotNet: return("DotNetController"); case CompetencyArea.GeneralEngineering: return("GeneralEngineeringController"); case CompetencyArea.JavaAndOpenSource: return("JavaAndOpenSourceController"); case CompetencyArea.OtherPlatforms: return("OtherPlatformsController"); case CompetencyArea.ProjectManagement: return("ProjectManagementController"); default: throw new ArgumentException("Unknwon Competency Area"); } }
/// <summary> /// Returns all of the Competencies with the data on filed /// for a candidate specified by the Id /// Optionally you can filter by 'Area' /// </summary> public IEnumerable <CompetencyDomainObject> Get(int filter) { CompetencyArea area = (CompetencyArea)filter; return(competencyRepository.RetrieveCompetencyList(area)); }