예제 #1
0
        public virtual BOCountry MapEFToBO(
            Country ef)
        {
            var bo = new BOCountry();

            bo.SetProperties(
                ef.Id,
                ef.Name);
            return(bo);
        }
        public virtual BOCountry MapModelToBO(
            int id,
            ApiCountryRequestModel model
            )
        {
            BOCountry boCountry = new BOCountry();

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