public virtual ApiCountryResponseModel MapBOToModel(
            BOCountry boCountry)
        {
            var model = new ApiCountryResponseModel();

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

            return(model);
        }
示例#2
0
        public virtual BOCountry MapEFToBO(
            Country ef)
        {
            var bo = new BOCountry();

            bo.SetProperties(
                ef.Id,
                ef.Name);
            return(bo);
        }
示例#3
0
        public virtual Country MapBOToEF(
            BOCountry bo)
        {
            Country efCountry = new Country();

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

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