public ActionResult ExecuteDelete(decimal pId) { try { AppDDSHCN_BL _obj_bl = new AppDDSHCN_BL(); decimal presonse = _obj_bl.AppDDSHCNDeleted(pId, SessionData.CurrentUser.Username, CommonFuc.CurrentDate()); if (presonse >= 0) { MemoryData.GetCache_represent(); } return(Json(new { success = presonse })); } catch (Exception ex) { Logger.LogException(ex); return(Json(new { success = -3 })); } }
public ActionResult ExecuteUpdate(AppDDSHCNInfo pInfo) { try { if (pInfo == null) { return(Json(new { success = -3 })); } pInfo.Modifiedby = SessionData.CurrentUser.Username; pInfo.Modifieddate = CommonFuc.CurrentDate(); AppDDSHCN_BL _obj_bl = new AppDDSHCN_BL(); decimal presonse = _obj_bl.AppDDSHCNUpdate(pInfo); if (presonse >= 0) { MemoryData.GetCache_represent(); } return(Json(new { success = presonse })); } catch (Exception ex) { Logger.LogException(ex); return(Json(new { success = -3 })); } }