Advertisement
Guest User

Untitled

a guest
May 23rd, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.63 KB | None | 0 0
  1. private RoomtypeCapacityType[] GetCapacity(Monitoring monitoring)
  2. {
  3. RoomtypeCapacityType[] capacity = null;
  4. var getCapacityFromStatMsgCategory = new IssueCategory
  5. {
  6. Name = "GetCapacityFromStatMsg",
  7. Status = "OK"
  8. };
  9. try
  10. {
  11. //Get Capacity
  12. capacity = GetCapacity();
  13. monitoring.IssueCategories.Add(getCapacityFromStatMsgCategory);
  14. }
  15. catch (Exception ex)
  16. {
  17. getCapacityFromStatMsgCategory.Name = "GetCapacityFromStatMsg";
  18. getCapacityFromStatMsgCategory.Status = "KO";
  19. getCapacityFromStatMsgCategory.Message = Utils.BuildExceptionMessage(ex);
  20. monitoring.IssueCategories.Add(getCapacityFromStatMsgCategory);
  21. }
  22. return capacity;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement