Пример #1
0
        public virtual ApiOrganizationResponseModel MapBOToModel(
            BOOrganization boOrganization)
        {
            var model = new ApiOrganizationResponseModel();

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

            return(model);
        }
        public virtual BOOrganization MapEFToBO(
            Organization ef)
        {
            var bo = new BOOrganization();

            bo.SetProperties(
                ef.Id,
                ef.Name);
            return(bo);
        }
        public virtual Organization MapBOToEF(
            BOOrganization bo)
        {
            Organization efOrganization = new Organization();

            efOrganization.SetProperties(
                bo.Id,
                bo.Name);
            return(efOrganization);
        }
Пример #4
0
        public virtual BOOrganization MapModelToBO(
            int id,
            ApiOrganizationRequestModel model
            )
        {
            BOOrganization boOrganization = new BOOrganization();

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