public bool Add(string name, string surname, string birthday, string university, string profession)
        {
            Unemployed unemployed = new Unemployed(name, surname, birthday, university, profession);

            repository.unemployeds.Add(unemployed);
            serializer.Serialize(repository);

            return(true);
        }
        public bool AddResume(string category, double salary, Unemployed unemployed)
        {
            Resume res = new Resume(unemployed, salary, category);



            repository.resumes.Add(res);

            serializer.Serialize(repository);

            return(true);
        }
        public bool Remove(Unemployed en)
        {
            try
            {
                repository.unemployeds.Remove(en);

                serializer.Serialize(repository);

                return(true);
            }
            catch (Exception) { return(false); }
        }
        public bool Edit(Unemployed en, string name, string surname, string birthday, string university, string proff)
        {
            try
            {
                repository.unemployeds.Where(x => x.ID == en.ID).FirstOrDefault().Name       = name;
                repository.unemployeds.Where(x => x.ID == en.ID).FirstOrDefault().Surname    = surname;
                repository.unemployeds.Where(x => x.ID == en.ID).FirstOrDefault().Birthday   = birthday;
                repository.unemployeds.Where(x => x.ID == en.ID).FirstOrDefault().University = university;
                repository.unemployeds.Where(x => x.ID == en.ID).FirstOrDefault().Profession = proff;

                serializer.Serialize(repository);

                return(true);
            }
            catch (Exception) { return(false); }
        }
 public string GetInfo(Unemployed en)
 {
     return(en.ToString());
 }