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

            bo.SetProperties(
                ef.Id,
                ef.Amount,
                ef.FirstName,
                ef.LastName,
                ef.PaymentTypeId,
                ef.PetId,
                ef.Phone);
            return(bo);
        }
Пример #2
0
        public virtual BOSale MapModelToBO(
            int id,
            ApiSaleRequestModel model
            )
        {
            BOSale boSale = new BOSale();

            boSale.SetProperties(
                id,
                model.Amount,
                model.FirstName,
                model.LastName,
                model.PaymentTypeId,
                model.PetId,
                model.Phone);
            return(boSale);
        }