Ejemplo n.º 1
0
        public virtual ApiColumnSameAsFKTableResponseModel MapBOToModel(
            BOColumnSameAsFKTable boColumnSameAsFKTable)
        {
            var model = new ApiColumnSameAsFKTableResponseModel();

            model.SetProperties(boColumnSameAsFKTable.Id, boColumnSameAsFKTable.Person, boColumnSameAsFKTable.PersonId);

            return(model);
        }
Ejemplo n.º 2
0
        public virtual BOColumnSameAsFKTable MapEFToBO(
            ColumnSameAsFKTable ef)
        {
            var bo = new BOColumnSameAsFKTable();

            bo.SetProperties(
                ef.Id,
                ef.Person,
                ef.PersonId);
            return(bo);
        }
Ejemplo n.º 3
0
        public virtual ColumnSameAsFKTable MapBOToEF(
            BOColumnSameAsFKTable bo)
        {
            ColumnSameAsFKTable efColumnSameAsFKTable = new ColumnSameAsFKTable();

            efColumnSameAsFKTable.SetProperties(
                bo.Id,
                bo.Person,
                bo.PersonId);
            return(efColumnSameAsFKTable);
        }
Ejemplo n.º 4
0
        public virtual BOColumnSameAsFKTable MapModelToBO(
            int id,
            ApiColumnSameAsFKTableRequestModel model
            )
        {
            BOColumnSameAsFKTable boColumnSameAsFKTable = new BOColumnSameAsFKTable();

            boColumnSameAsFKTable.SetProperties(
                id,
                model.Person,
                model.PersonId);
            return(boColumnSameAsFKTable);
        }