public int AlterStatus(SysOperator model, long status, long oprid, int type) { int result = 0; try { if (model != null) { var obj = db.UP_AlterStatus(status, oprid, model.ID, type); var id = obj.FirstOrDefault(); if (id == null) { return(0); } result = 1; return(result); } return(result); } catch (Exception ex) { LogUtil.Exception("ExceptionLogger", ex); return(result); } }