public Model.Users.Notification NewNotification(Model.Users.Notification notification) { List <Notification> notifications = ReadFromFile(); notifications.Add(notification); WriteInFile(notifications); return(notification); }
public void SendNotification(Model.Users.Notification notification) { notificationRepository.NewNotification(notification); }