Ejemplo n.º 1
0
        public IEnumerable <string> GetAllCompetencesNameByPosition(string positionName)
        {
            using (IUnityManagerModule dataContainer = new UnityManagerModule())
            {
                dataContainer.Init();
                ICompetenceService competenceService = dataContainer.Resolve <ICompetenceService>();

                return(competenceService.GetAllCompetencesNameByPosition(positionName));
            }
        }
Ejemplo n.º 2
0
        public IEnumerable <CompetenceDto> GetAllCompetencesByPosition(int positionId)
        {
            using (IUnityManagerModule dataContainer = new UnityManagerModule())
            {
                dataContainer.Init();
                ICompetenceService competenceService = dataContainer.Resolve <ICompetenceService>();

                return(competenceService.GetAllCompetencesByPosition(positionId));
            }
        }
Ejemplo n.º 3
0
        public void UpdateCompetence(int id, string competenceName)
        {
            using (IUnityManagerModule dataContainer = new UnityManagerModule())
            {
                dataContainer.Init();
                ICompetenceService competenceService = dataContainer.Resolve <ICompetenceService>();

                competenceService.UpdateCompetence(id, competenceName);

                UnitOfWork unitOfWork = new UnitOfWork();
                unitOfWork.SaveChanges();
            }
        }
Ejemplo n.º 4
0
 /// <inheritdoc />
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="factory"></param>
 public CompetenceController(IChatBotDataFactory factory)
 {
     _competenceService = factory.GetCompetenceService();
     _mapper            = factory.GetMapperService();
 }