Ejemplo n.º 1
0
        public List <JsonMeetingPlaces> GetAll()
        {
            UserBLL userbll = new UserBLL();

            var result = new List <JsonMeetingPlaces>();
            MeetingPlacesRepository _MeetingPlacesRepository = new MeetingPlacesRepository();
            MeetingPlaceTranslator  _MeetingPlaceTranslator  = new MeetingPlaceTranslator();

            result = _MeetingPlaceTranslator.ToDomainObjects(_MeetingPlacesRepository.GetAll());
            return(result);
        }
Ejemplo n.º 2
0
        public string DeleteMeetingPlace(JsonMeetingPlaces _MeetingPlaceCLL)
        {
            string result = string.Empty;

            MeetingPlacesRepository _MeetingPlacesRepository = new MeetingPlacesRepository();
            MeetingPlaceTranslator  _MeetingPlaceTranslator  = new MeetingPlaceTranslator();

            if (_MeetingPlaceCLL.ID != "")
            {
                _MeetingPlacesRepository.Delete(_MeetingPlaceTranslator.Toentity(_MeetingPlaceCLL));
            }

            return(result);
        }
Ejemplo n.º 3
0
        public string SaveMeetingPlace(JsonMeetingPlaces _MeetingPlace)
        {
            string result = string.Empty;

            MeetingPlacesRepository _MeetingPlacesRepository = new MeetingPlacesRepository();
            MeetingPlaceTranslator  _MeetingPlaceTranslator  = new MeetingPlaceTranslator();

            if (_MeetingPlace.ID == "")
            {
                _MeetingPlace.ID = Guid.NewGuid().ToString();
                _MeetingPlacesRepository.Add(_MeetingPlaceTranslator.Toentity(_MeetingPlace));
            }
            else
            {
                _MeetingPlacesRepository.Update(_MeetingPlaceTranslator.Toentity(_MeetingPlace));
            }
            return(result);
        }