Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private RoomtypeCapacityType[] GetCapacity(Monitoring monitoring)
- {
- RoomtypeCapacityType[] capacity = null;
- var getCapacityFromStatMsgCategory = new IssueCategory
- {
- Name = "GetCapacityFromStatMsg",
- Status = "OK"
- };
- try
- {
- //Get Capacity
- capacity = GetCapacity();
- monitoring.IssueCategories.Add(getCapacityFromStatMsgCategory);
- }
- catch (Exception ex)
- {
- getCapacityFromStatMsgCategory.Name = "GetCapacityFromStatMsg";
- getCapacityFromStatMsgCategory.Status = "KO";
- getCapacityFromStatMsgCategory.Message = Utils.BuildExceptionMessage(ex);
- monitoring.IssueCategories.Add(getCapacityFromStatMsgCategory);
- }
- return capacity;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement