Esempio n. 1
0
        public virtual ApiInvitationResponseModel MapBOToModel(
            BOInvitation boInvitation)
        {
            var model = new ApiInvitationResponseModel();

            model.SetProperties(boInvitation.Id, boInvitation.InvitationCode, boInvitation.JSON);

            return(model);
        }
        public virtual BOInvitation MapEFToBO(
            Invitation ef)
        {
            var bo = new BOInvitation();

            bo.SetProperties(
                ef.Id,
                ef.InvitationCode,
                ef.JSON);
            return(bo);
        }
        public virtual Invitation MapBOToEF(
            BOInvitation bo)
        {
            Invitation efInvitation = new Invitation();

            efInvitation.SetProperties(
                bo.Id,
                bo.InvitationCode,
                bo.JSON);
            return(efInvitation);
        }
Esempio n. 4
0
        public virtual BOInvitation MapModelToBO(
            string id,
            ApiInvitationRequestModel model
            )
        {
            BOInvitation boInvitation = new BOInvitation();

            boInvitation.SetProperties(
                id,
                model.InvitationCode,
                model.JSON);
            return(boInvitation);
        }