/// <summary> /// Deletes the skill group. /// </summary> /// <param name="group">The group.</param> public static void DeleteSkillGroup(SkillGroup group) { if (group==null||String.IsNullOrEmpty(group.Title)) throw new CustomException("Invalid skill group argument","Can`t delete this argument"); SkillGroup.Delete(group); Context.SaveChanges(); }
/// <summary> /// Updates the skill group. /// </summary> /// <param name="group">The group.</param> /// <remarks></remarks> public static void UpdateSkillGroup(SkillGroup group) { if (group==null|| String.IsNullOrEmpty(group.Title)|| group.Id <1) throw new CustomException("Invalid skill group argument","Can`t update this value"); SkillGroup.Update(group); Context.SaveChanges(); }