Пример #1
0
        public async Task <OS_TaskSkillTemplate_Dto> AddTaskSkillTemplate(OS_TaskSkillTemplate_Dto functionSkillTemplate)
        {
            OS_TaskSkillTemplate toAdd = ObjectMapper.Map <OS_TaskSkillTemplate_Dto, OS_TaskSkillTemplate>(functionSkillTemplate);

            return(ObjectMapper.Map <OS_TaskSkillTemplate, OS_TaskSkillTemplate_Dto>(await SkillsRepository.InsertAsync(toAdd)));
        }
Пример #2
0
        //public async Task<OS_TaskQualificationTemplate_Dto> AddQualificationTemplate(OS_TaskQualificationTemplate taskQualificationTemplate)
        //{
        //    return ObjectMapper.Map<OS_TaskQualificationTemplate, OS_TaskQualificationTemplate_Dto>(await QualificationsRepository.InsertAsync(taskQualificationTemplate));
        //}
        //public async Task<OS_TaskQualificationTemplate_Dto> AddQualificationTemplate(OS_TaskQualificationTemplate_Dto taskQualificationTemplate)
        //{
        //    OS_TaskQualificationTemplate toAdd = ObjectMapper.Map<OS_TaskQualificationTemplate_Dto, OS_TaskQualificationTemplate>(taskQualificationTemplate);
        //    return ObjectMapper.Map<OS_TaskQualificationTemplate, OS_TaskQualificationTemplate_Dto>(await QualificationsRepository.InsertAsync(toAdd));
        //}

        public async Task <OS_TaskSkillTemplate_Dto> AddTaskSkill(OS_TaskSkillTemplate functionSkillTemplate)
        {
            return(ObjectMapper.Map <OS_TaskSkillTemplate, OS_TaskSkillTemplate_Dto>(await SkillsRepository.InsertAsync(functionSkillTemplate)));
        }