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

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

            return(res);
        }