public MessageResult GetOpenState(int sysId) { try { var result = sysBLL.GetOpenState(sysId); return(MessageResult.Success(result)); } catch (Exception ex) { return(MessageResult.Fail(ex.Message)); } }