public virtual ApiTableResponseModel MapBOToModel(
            BOTable boTable)
        {
            var model = new ApiTableResponseModel();

            model.SetProperties(boTable.Id, boTable.Name);

            return(model);
        }
Exemple #2
0
        public virtual BOTable MapEFToBO(
            Table ef)
        {
            var bo = new BOTable();

            bo.SetProperties(
                ef.Id,
                ef.Name);
            return(bo);
        }
Exemple #3
0
        public virtual Table MapBOToEF(
            BOTable bo)
        {
            Table efTable = new Table();

            efTable.SetProperties(
                bo.Id,
                bo.Name);
            return(efTable);
        }
        public virtual BOTable MapModelToBO(
            int id,
            ApiTableRequestModel model
            )
        {
            BOTable boTable = new BOTable();

            boTable.SetProperties(
                id,
                model.Name);
            return(boTable);
        }