public void Delete(int id, int userId) { dataProvider.ExecuteNonQuery( "Notifications_Delete", inputParamMapper: (parameters) => { parameters.AddWithValue("@Id", id); parameters.AddWithValue("@UserId", userId); }, returnParameters: null); string notifications = GetNotificationByUserId(userId); notificationSender.SendNotificationsToUser(userId, notifications); }