예제 #1
0
        public JsonResult WoDing(int sid, int?id)
        {
            iPow.Infrastructure.Data.DataSys.Sys_SightInfo info = sightInfoService.GetSysSightSingleById(sid);
            bool tar   = true;
            int  count = 0;

            if (info != null)
            {
                info.WantCount += 1;
                count           = (int)info.WantCount;
                try
                {
                    sightCommRepository.Uow.Commit();
                }
                catch
                {
                    tar   = false;
                    count = 0;
                }
            }
            else
            {
                tar = false;
            }
            return(this.Json(new { success = tar.ToString(), count = count }, JsonRequestBehavior.AllowGet));
        }
예제 #2
0
        public bool Modify(iPow.Infrastructure.Data.DataSys.Sys_SightInfo entity, iPow.Infrastructure.Data.DataSys.Sys_AdminUser operUser)
        {
            var res = false;

            if (entity != null && entity.ParkID > 0)
            {
                try
                {
                    sightInfoRepository.Modify(entity);
                    res = true;
                }
                catch (Exception ex)
                {
                }
            }
            return(res);
        }
예제 #3
0
        public bool DeleteTrue(iPow.Infrastructure.Data.DataSys.Sys_SightInfo entity, iPow.Infrastructure.Data.DataSys.Sys_AdminUser operUser)
        {
            var res = false;

            if (entity != null)
            {
                try
                {
                    sightInfoRepository.Delete(entity);
                    sightInfoRepository.Uow.Commit();
                    res = true;
                }
                catch (Exception ex)
                {
                }
            }
            return(res);
        }
예제 #4
0
 public bool Delete(iPow.Infrastructure.Data.DataSys.Sys_SightInfo entity, iPow.Infrastructure.Data.DataSys.Sys_AdminUser operUser)
 {
     throw new NotImplementedException();
 }