public void ApplyById(int projectId, string senderId)
        {
            Project dbProject = this.GetById(projectId);
            if (dbProject == null)
            {
                return;
            }

            string receiverId = dbProject.CreatorId;

            User sender = this.users.GetById(senderId);
            User receiver = this.users.GetById(receiverId);

            var notification = new ProjectNotification
            {
                Sender = sender,
                Receiver = receiver,
                ProjectId = projectId
            };

            dbProject.ProjectNotifications.Add(notification);
        }
 public void Update(ProjectNotification notification)
 {
     this.notifications.Update(notification);
 }