Пример #1
0
        public virtual BOSpace MapEFToBO(
            Space ef)
        {
            var bo = new BOSpace();

            bo.SetProperties(
                ef.Id,
                ef.Description,
                ef.Name,
                ef.StudioId);
            return(bo);
        }
Пример #2
0
        public virtual BOSpace MapModelToBO(
            int id,
            ApiSpaceRequestModel model
            )
        {
            BOSpace boSpace = new BOSpace();

            boSpace.SetProperties(
                id,
                model.Description,
                model.Name,
                model.StudioId);
            return(boSpace);
        }