public DiscountDetail CreateDiscountDetail(DiscountDetailBean bean)
        {
            DiscountDetail beanBack = new DiscountDetail();

            beanBack.Id             = bean.Id;
            beanBack.DishId         = bean.DishId;
            beanBack.DiscountId     = bean.DiscountId;
            beanBack.DiscountValue  = bean.DiscountValue;
            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 DiscountDetail CreateDiscountDetail(DiscountDetailBean bean)
        {
            DiscountDetail beanBack = new DiscountDetail();
            beanBack.Id = bean.Id;
            beanBack.DishId = bean.DishId;
            beanBack.DiscountId = bean.DiscountId;
            beanBack.DiscountValue = bean.DiscountValue;
            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;

        }