コード例 #1
0
        public virtual BOHandler MapEFToBO(
            Handler ef)
        {
            var bo = new BOHandler();

            bo.SetProperties(
                ef.Id,
                ef.CountryId,
                ef.Email,
                ef.FirstName,
                ef.LastName,
                ef.Phone);
            return(bo);
        }
コード例 #2
0
        public virtual BOHandler MapModelToBO(
            int id,
            ApiHandlerRequestModel model
            )
        {
            BOHandler boHandler = new BOHandler();

            boHandler.SetProperties(
                id,
                model.CountryId,
                model.Email,
                model.FirstName,
                model.LastName,
                model.Phone);
            return(boHandler);
        }