Example #1
0
        public DO.Objects.DistritoEclesiastico GetOneById(string id)
        {
            var detailsQuery = new dal.DistritoEclesiastico().GetOneById(id);
            var res          = Mapper.Map <data.DistritoEclesiastico, DO.Objects.DistritoEclesiastico>(detailsQuery);

            return(res);
        }
Example #2
0
        public IEnumerable <DO.Objects.DistritoEclesiastico> GetAll()
        {
            var detailsQuery = new dal.DistritoEclesiastico().GetAll();
            var res          = Mapper.Map <IEnumerable <data.DistritoEclesiastico>, IEnumerable <DO.Objects.DistritoEclesiastico> >(detailsQuery);

            return(res);
        }