public void setException(string ErrMsg, string csName) { SysLog Log = SysLog.GetLogger(csName); Message = ErrMsg; Log.Exception(ErrMsg); }
public void setException(Exception ex, string csName) { SysLog Log = SysLog.GetLogger(csName); Message = ex.Message; Log.Exception(ex); }
public long Insert(Question_Info data) { long newID = 0; try { newID = new Question_Repo().Insert(data); } catch (Exception ex) { log.Exception(ex); } return(newID); }
public long Insert(TeamIntroduce_Info data) { long newID = 0; try { newID = new TeamIntroduce_Repo().Insert(data); } catch (Exception ex) { log.Exception(ex); } return(newID); }
public long Insert(HirCategory_Info data) { long newID = 0; try { newID = new HirCategory_Repo().Insert(data); } catch (Exception ex) { log.Exception(ex); } return(newID); }
public long Insert(CostNews_Info data) { long newID = 0; try { newID = new CostNews_Repo().Insert(data); } catch (Exception ex) { log.Exception(ex); } return(newID); }
public long Insert(AboutTeam_Info data) { long newID = 0; try { newID = new AboutTeam_Repo().Insert(data); } catch (Exception ex) { log.Exception(ex); } return(newID); }
public long Insert(WebDownload_Info data) { long newID = 0; try { newID = new WebDownload_Repo().Insert(data); } catch (Exception ex) { log.Exception(ex); } return(newID); }
public long Insert(NormallContent_Info data) { long newID = 0; try { newID = new NormallContent_Repo().Insert(data); } catch (Exception ex) { log.Exception(ex); } return(newID); }
public int Insert(Doc_Info data) { int newID = 0; try { newID = new Doc_Repo().Insert(data); } catch (Exception ex) { log.Exception(ex); } return(newID); }
public long Insert(DiaryData_Info data) { long newID = 0; try { newID = new DiaryData_Repo().Insert(data); } catch (Exception ex) { log.Exception(ex); } return(newID); }
public long Insert(HomePage_Info data) { long newID = 0; try { newID = new HomePage_Repo().Insert(data); } catch (Exception ex) { log.Exception(ex); } return(newID); }
public long Insert(User_Info data) { long newID = 0; try { data.Password = Encrypt.EncryptPassword(data.Password, data.LoginId); data.LastUpdate = DateTime.Now; newID = new User_Repo().Insert(data); } catch (Exception ex) { log.Exception(ex); } return(newID); }
protected override void OnException(ExceptionContext filterContext) { filterContext.Result = Json("Got Server Error, Please check with Administrator. Thansk!", JsonRequestBehavior.AllowGet); filterContext.ExceptionHandled = true; Log.Exception(filterContext.Exception); }
public void setException(Exception ex, SysLog Log) { Message = ex.Message; Log.Exception(ex); }