Beispiel #1
0
        public SkillVideo AddSkillVideo(SkillVideo skillVideo, int id)
        {

            skillVideo.SkillLevel = _skillLevelRepository.GetById(id);
            if (skillVideo.SkillLevel != null)
            {
               return _skillVideoRepository.Add(skillVideo);
            }
            return null;
        }
Beispiel #2
0
 public void UpdateSkillVideo(SkillVideo skillVideo, int id)
 {
     if (id != 0)
     {
         skillVideo.Id = id;
         skillVideo.SkillLevel = _skillVideoRepository.GetById(id).SkillLevel;
         _skillVideoRepository.Update(skillVideo,id);
     }
 }