Exemplo n.º 1
0
        public List <EventModel> GetEvent(int User_ID)
        {
            List <EventModel>  _event      = new List <EventModel>();
            EventServiceClient EventClient = new EventServiceClient();

            if (User_ID == 0) //no one logged in || All Event
            {
                _event = EventClient.findAllEvent();
                return(_event);
            }
            else //User logged in || Event by Event ID
            {
                string strEventID = Convert.ToString(User_ID);
                _event = EventClient.findEventbyID(strEventID, "0");
                return(_event);
            }
        }