Beispiel #1
0
        public DishUnit CreateDishUnit(DishesUnitModel bean)
        {
            DishUnit beanBack = new DishUnit();

            beanBack.DishUnitId     = bean.DishUnitId;
            beanBack.Name           = bean.Name;
            beanBack.SaleType       = bean.SaleType;
            beanBack.OrderNum       = bean.OrderNum;
            beanBack.CreateDatetime = bean.CreateDatetime;
            beanBack.CreateBy       = bean.CreateBy;
            beanBack.Deleted        = bean.Deleted;
            beanBack.Status         = bean.Status;
            beanBack.UpdateDatetime = bean.UpdateDatetime;
            beanBack.UpdateBy       = bean.UpdateBy;
            return(beanBack);
        }
        public DishUnit CreateDishUnit(DishesUnitModel bean)
        {
            DishUnit beanBack = new DishUnit();
            beanBack.DishUnitId = bean.DishUnitId;
            beanBack.Name = bean.Name;
            beanBack.SaleType = bean.SaleType;
            beanBack.OrderNum = bean.OrderNum;
            beanBack.CreateDatetime = bean.CreateDatetime;
            beanBack.CreateBy = bean.CreateBy;
            beanBack.Deleted = bean.Deleted;
            beanBack.Status = bean.Status;
            beanBack.UpdateDatetime = bean.UpdateDatetime;
            beanBack.UpdateBy = bean.UpdateBy;
            return beanBack;

        }