// מתנדב מאשר השתתפות באירוע 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); }
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); }