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

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

            return(res);
        }