/// <summary> /// Deletes the resume theme. /// </summary> /// <param name="resumeTheme">The resume theme.</param> public static void DeleteResumeTheme(ResumeTheme resumeTheme) { if (resumeTheme == null || resumeTheme.Id < 1) throw new CustomException("Invalid part of resume","Can`t delete this value"); ResumeTheme.Delete(resumeTheme); Context.SaveChanges(); }
/// <summary> /// Adds the resume theme. /// </summary> /// <param name="resumeTheme">The resume theme.</param> public static void AddResumeTheme(ResumeTheme resumeTheme) { if (resumeTheme == null || resumeTheme.ResumeId < 1 || resumeTheme.ThemeId < 1 || resumeTheme.SkillId < 1) throw new CustomException("Invalid part of resume","Can`t add this value"); ResumeTheme.Add(resumeTheme); Context.SaveChanges(); }