コード例 #1
0
ファイル: OfferController.cs プロジェクト: leshacsharp/ReWork
        public void AcceptOffer(int offerId, string employeeId)
        {
            _offerService.AcceptOffer(offerId, employeeId);

            string senderId   = User.Identity.GetUserId();
            string notifyText = "You have been chosen to work in a project <a href='/employee/myjobs'>you projects</a>";

            _notificationService.CreateNotification(senderId, employeeId, notifyText);
            _commitProvider.SaveChanges();

            _notificationService.RefreshNotifications(employeeId);
        }