Ejemplo n.º 1
0
        //בדיקה מי יכולה להשתתף באירוע ושליחת אימייל לכל אחת
        public static bool invitationParticipants(int eventsVolunteerID)
        {
            //בדיקה מי יכול להשתתף באירוע לפי מספר שעות התנדבות מינימאלי
            eventsVolunteer eventsVolunteer    = volunteeringET.eventsVolunteer.Find(eventsVolunteerID);
            var             groupByIdVolunteer = volunteeringET.volunteerHistory.GroupBy(x => x.volunteerOfChildId);

            volunteeringET.volunteerHistory.GroupBy(v => v.volunteerOfChildId);
            return(true);
        }
Ejemplo n.º 2
0
 public bool addNewEvents(eventsVolunteer eventsVolunteer)
 {
     if (eventsVolunteer != null && ModelState.IsValid == true)
     {
         volunteeringET.eventsVolunteer.Add(eventsVolunteer);
         volunteeringET.SaveChanges();
         return(true);
     }
     else
     {
         return(false);
     }
 }
        public static eventsVolunteerDTO GetEventsVolunteer(eventsVolunteer ev)
        {
            eventsVolunteerDTO newEventsVolunteer = new eventsVolunteerDTO();

            newEventsVolunteer.countParticipants    = ev.countParticipants;
            newEventsVolunteer.dateEvent            = ev.dateEvent;
            newEventsVolunteer.description          = ev.description;
            newEventsVolunteer.eventsVolunteerID    = ev.eventsVolunteerID;
            newEventsVolunteer.maxCountParticipants = ev.maxCountParticipants;
            newEventsVolunteer.minVolunteers        = ev.minVolunteers;
            newEventsVolunteer.place = ev.place;
            newEventsVolunteer.responsibleSecretary = ev.responsibleSecretary;
            newEventsVolunteer.typeEvent            = ev.typeEvent;
            return(newEventsVolunteer);
        }