Example #1
0
        // מתנדב מאשר השתתפות באירוע
        public static bool approvalParticipationInEvent(int id)
        {
            eventOfVolunteer eventOfVolunteer = volunteeringET.eventOfVolunteer.Find(id);

            if (eventOfVolunteer != null)
            {
                eventOfVolunteer.IsParticipant = eIsParticipant.participation.ToString();
                volunteeringET.SaveChanges();
                return(true);
            }
            return(false);
        }
Example #2
0
        public eventOfVolunteerDTO GetEventOfVolunteer(eventOfVolunteer eov)
        {
            eventOfVolunteerDTO newEventOfVolunteer = new eventOfVolunteerDTO();

            newEventOfVolunteer.countVolunteer       = eov.countVolunteer;
            newEventOfVolunteer.eventId              = eov.eventId;
            newEventOfVolunteer.IsParticipant        = eov.IsParticipant;
            newEventOfVolunteer.minCountVolunteering = eov.minCountVolunteering;
            newEventOfVolunteer.volunteerId          = eov.volunteerId;
            newEventOfVolunteer.volunteerOfEventID   = eov.volunteerOfEventID;
            return(newEventOfVolunteer);
        }