Ejemplo n.º 1
0
        public virtual BOKeyAllocation MapEFToBO(
            KeyAllocation ef)
        {
            var bo = new BOKeyAllocation();

            bo.SetProperties(
                ef.CollectionName,
                ef.Allocated);
            return(bo);
        }
Ejemplo n.º 2
0
        public virtual BOKeyAllocation MapModelToBO(
            string collectionName,
            ApiKeyAllocationRequestModel model
            )
        {
            BOKeyAllocation boKeyAllocation = new BOKeyAllocation();

            boKeyAllocation.SetProperties(
                collectionName,
                model.Allocated);
            return(boKeyAllocation);
        }