Esempio n. 1
0
        public List <Activity_volunteer_list_ViewModel> SelectVolunteer_list(string activity_name, DateTime start_date)
        {
            List <Activity_volunteer_list_ViewModel> Activity_volunteer_list = new List <Activity_volunteer_list_ViewModel>();

            Activity_volunteer_list_Model activity_Volunteer_List_Model = new Activity_volunteer_list_Model();

            foreach (var row in activity_Volunteer_List_Model.SelectVolunteer_list(activity_name, start_date))
            {
                Activity_volunteer_list_ViewModel activity_Volunteer_List_ViewModel = new Activity_volunteer_list_ViewModel();
                activity_Volunteer_List_ViewModel.Activity_no  = row.Activity_no;
                activity_Volunteer_List_ViewModel.Volunteer_no = row.Volunteer_no;
                activity_Volunteer_List_ViewModel.Volunteer    = row.Volunteer;
                activity_Volunteer_List_ViewModel.Phone        = row.Phone;
                activity_Volunteer_List_ViewModel.Vegetarian   = row.Vegetarian;

                Activity_volunteer_list.Add(activity_Volunteer_List_ViewModel);
            }

            return(Activity_volunteer_list);
        }
Esempio n. 2
0
        public void DeleteVoluteer_list(List <int> delete_list, int activity_no)
        {
            Activity_volunteer_list_Model activity_Volunteer_List_Model = new Activity_volunteer_list_Model();

            activity_Volunteer_List_Model.DeleteVoluteer_list(delete_list, activity_no);
        }
Esempio n. 3
0
        public void InsertVoluteer_list(List <int> insert_list, int activity_no)
        {
            Activity_volunteer_list_Model activity_Volunteer_List_Model = new Activity_volunteer_list_Model();

            activity_Volunteer_List_Model.InsertVoluteer_list(insert_list, activity_no);
        }