Ejemplo n.º 1
0
        /// <summary>
        /// 根据性质获取种类
        /// </summary>
        /// <returns></returns>
        public BasicResponse <DataTable> GetClassByProperty(GetClassByPropertyRequest alarmRequest)
        {
            var response = new BasicResponse <DataTable>();

            try
            {
                response.Data = _Repository.GetClassByProperty(alarmRequest.Type);
            }
            catch (Exception ex)
            {
                response.Code    = -100;
                response.Message = ex.Message;
                this.ThrowException("根据性质获取种类", ex);
            }

            return(response);
        }