Exemple #1
0
 /// <summary>
 /// 用于修改DIY线路的
 /// </summary>
 /// <param name="tour"></param>
 /// <returns></returns>
 public iPow.Infrastructure.Data.DataSys.Sys_TourPlan UpdateTourPlan(iPow.Infrastructure.Data.DataSys.Sys_TourPlan tour)
 {
     tourPlanRepository.Modify(tour);
     tourPlanRepository.Uow.Commit();
     iPow.Infrastructure.Data.DataSys.Sys_TourPlan res = tourPlanRepository.GetList(e => e.PlanID == tour.PlanID).First();
     return(res);
 }
Exemple #2
0
        public bool Modify(iPow.Infrastructure.Data.DataSys.Sys_TourPlan entity, iPow.Infrastructure.Data.DataSys.Sys_AdminUser operUser)
        {
            var res = false;

            if (entity != null && entity.PlanID > 0)
            {
                try
                {
                    tourPlanRepository.Modify(entity);
                    res = true;
                }
                catch (Exception ex)
                {
                }
            }
            return(res);
        }