You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

LuCrudWebSocketNotificationsBusiness.cs 1.1KB

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using Luticate2.Utils.Interfaces;
  3. namespace Luticate2.Utils.Business
  4. {
  5. public class LuCrudWebSocketNotificationsBusiness : ILuCrudWebSocketNotificationsBusiness
  6. {
  7. private readonly ILuWebSocketNotificationsBusiness _luWebSocketNotificationsBusiness;
  8. public LuCrudWebSocketNotificationsBusiness(ILuWebSocketNotificationsBusiness luWebSocketNotificationsBusiness)
  9. {
  10. _luWebSocketNotificationsBusiness = luWebSocketNotificationsBusiness;
  11. }
  12. public void NotifyCreate(Type crudType, object newEntity)
  13. {
  14. _luWebSocketNotificationsBusiness.NotifyCrudCreate(crudType.GetCrudEntityType(), newEntity);
  15. }
  16. public void NotifyUpdate(Type crudType, object oldEntity, object newEntity)
  17. {
  18. _luWebSocketNotificationsBusiness.NotifyCrudUpdate(crudType.GetCrudEntityType(), oldEntity, newEntity);
  19. }
  20. public void NotifyDelete(Type crudType, object oldEntity)
  21. {
  22. _luWebSocketNotificationsBusiness.NotifyCrudDelete(crudType.GetCrudEntityType(), oldEntity);
  23. }
  24. }
  25. }