Beispiel #1
0
        public ClientSeverityActionResult GetClientSeverityAction(int clientID, int severityLevelID)
        {
            try
            {
                BSL.ClientService service = new BSL.ClientService();
                var info = service.GetClientSeverityAction(clientID, severityLevelID);

                var sr = new ClientSeverityActionResult
                {
                    IsSuccess = true,
                    Info      = info,
                };
                return(sr);
            }
            catch (Exception ex)
            {
                new RMSWebException(this, "0500", "GetClientSeverityAction failed. " + ex.Message, ex, true);

                var sr = new ClientSeverityActionResult
                {
                    IsSuccess    = false,
                    ErrorMessage = "List errors. " + ex.Message
                };
                return(sr);
            }
        }
Beispiel #2
0
        public ClientSeverityActionResult UpdateClientSeverityAction(int clientID, int severityLevelID, bool overwritenAction, string email, string sms, int?commandLineID,
                                                                     string updatedBy)
        {
            try
            {
                BSL.ClientService service = new BSL.ClientService();
                var rms = service.UpdateClientSeverityAction(clientID, severityLevelID, overwritenAction, email, sms, commandLineID, updatedBy);

                var sr = new ClientSeverityActionResult
                {
                    IsSuccess            = true,
                    ClientSeverityAction = rms,
                };
                return(sr);
            }
            catch (Exception ex)
            {
                new RMSWebException(this, "0500", "UpdateClientSeverityAction failed. " + ex.Message, ex, true);

                var sr = new ClientSeverityActionResult
                {
                    IsSuccess    = false,
                    ErrorMessage = "List errors. " + ex.Message
                };
                return(sr);
            }
        }
Beispiel #3
0
        public ClientSeverityActionResult ListClientSeverityActions(int clientID)
        {
            try
            {
                BSL.ClientService service = new BSL.ClientService();
                var lists = service.ListClientSeverityActions(clientID);

                var sr = new ClientSeverityActionResult
                {
                    IsSuccess = true,
                    ListClientSeverityActionInfos = lists,
                    TotalRecords = lists.Count
                };
                return(sr);
            }
            catch (Exception ex)
            {
                new RMSWebException(this, "0500", "ListClientSeverityActions failed. " + ex.Message, ex, true);

                var sr = new ClientSeverityActionResult
                {
                    IsSuccess    = false,
                    ErrorMessage = "List errors. " + ex.Message
                };
                return(sr);
            }
        }