public virtual ApiBreedResponseModel MapBOToModel(
            BOBreed boBreed)
        {
            var model = new ApiBreedResponseModel();

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

            return(model);
        }
Example #2
0
        public virtual BOBreed MapEFToBO(
            Breed ef)
        {
            var bo = new BOBreed();

            bo.SetProperties(
                ef.Id,
                ef.Name);
            return(bo);
        }
Example #3
0
        public virtual Breed MapBOToEF(
            BOBreed bo)
        {
            Breed efBreed = new Breed();

            efBreed.SetProperties(
                bo.Id,
                bo.Name);
            return(efBreed);
        }
        public virtual BOBreed MapModelToBO(
            int id,
            ApiBreedRequestModel model
            )
        {
            BOBreed boBreed = new BOBreed();

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