public int AddParticipancy(ParticipancyDTO participancy)
        {
            Participancy newParticipancy = Mapper.Map <Participancy>(participancy);

            _context.Participancy.Add(newParticipancy);

            int result = _context.SaveChanges();

            return(result);
        }
        public int UpdateParticipancy(ParticipancyDTO participancy)
        {
            var participancyToUpdate = _context.Participancy.Find(participancy.Id);

            participancyToUpdate.Publication             = participancy.Publication;
            participancyToUpdate.ConferenceParticipation = participancy.ConferenceParticipation;
            participancyToUpdate.IsDeleted = participancy.IsDeleted;

            int result = _context.SaveChanges();

            return(result);
        }