예제 #1
0
        public static Muffin ModelToEntity(MuffinModelCS muffinModel)
        {
            Muffin muffin = new Muffin();

            muffin.muffin_id    = muffinModel.muffin_id;
            muffin.muffin_name  = muffinModel.muffin_name;
            muffin.muffin_price = muffinModel.muffin_price;

            return(muffin);
        }
예제 #2
0
        public static MuffinModelCS EntityToModel(Muffin muffin)
        {
            MuffinModelCS muffinModel = new MuffinModelCS();

            muffinModel.muffin_id    = muffin.muffin_id;
            muffinModel.muffin_name  = muffin.muffin_name;
            muffinModel.muffin_price = muffin.muffin_price;

            return(muffinModel);
        }