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)); }
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); }
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); }
public bool Delete(iPow.Infrastructure.Data.DataSys.Sys_SightInfo entity, iPow.Infrastructure.Data.DataSys.Sys_AdminUser operUser) { throw new NotImplementedException(); }