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.

LuUtilsBusinessExtensions.cs 905B

1234567891011121314151617181920212223
  1. using Luticate2.Utils.Dbo.Basic;
  2. using Luticate2.Utils.Interfaces;
  3. namespace Luticate2.Utils.Business
  4. {
  5. public static class LuUtilsBusinessExtensions
  6. {
  7. public static void NotifyCrudCreate(this ILuNotificationsBusiness business, string entityType, object newEntity)
  8. {
  9. business.Notify(LuUtilsConstants.EventCreate, entityType, null, newEntity);
  10. }
  11. public static void NotifyCrudUpdate(this ILuNotificationsBusiness business, string entityType, object oldEntity, object newEntity)
  12. {
  13. business.Notify(LuUtilsConstants.EventUpdate, entityType, oldEntity, newEntity);
  14. }
  15. public static void NotifyCrudDelete(this ILuNotificationsBusiness business, string entityType, object oldEntity)
  16. {
  17. business.Notify(LuUtilsConstants.EventDelete, entityType, oldEntity, null);
  18. }
  19. }
  20. }