public bool SavePositionPro(int systemId, string companyId, string positionId, string positionName, string description, int sort, bool state) { try { int errCode = -1; string errMsg = "fail"; var result = LdCmsDbEntitiesContext.SP_Add_Institution_Position(systemId, companyId, positionId, positionName, description, sort, state, out errCode, out errMsg); if (errCode != 0) { throw new Exception(errMsg); } return(errCode == 0 ? true : false); } catch (Exception ex) { throw new Exception(ex.Message); } }