Esempio n. 1
0
        public virtual ApiKeyAllocationResponseModel MapBOToModel(
            BOKeyAllocation boKeyAllocation)
        {
            var model = new ApiKeyAllocationResponseModel();

            model.SetProperties(boKeyAllocation.CollectionName, boKeyAllocation.Allocated);

            return(model);
        }
Esempio n. 2
0
        public virtual BOKeyAllocation MapEFToBO(
            KeyAllocation ef)
        {
            var bo = new BOKeyAllocation();

            bo.SetProperties(
                ef.CollectionName,
                ef.Allocated);
            return(bo);
        }
Esempio n. 3
0
        public virtual KeyAllocation MapBOToEF(
            BOKeyAllocation bo)
        {
            KeyAllocation efKeyAllocation = new KeyAllocation();

            efKeyAllocation.SetProperties(
                bo.Allocated,
                bo.CollectionName);
            return(efKeyAllocation);
        }
Esempio n. 4
0
        public virtual BOKeyAllocation MapModelToBO(
            string collectionName,
            ApiKeyAllocationRequestModel model
            )
        {
            BOKeyAllocation boKeyAllocation = new BOKeyAllocation();

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