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); }
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); }