public void SaveComment(RegisteredSipComment sipComment) { _userRepository.UpdateComment(sipComment.RegisteredSipUserName, sipComment.Comment); // Invalidate registered sip in cache _cache.ClearRegisteredSips(); }
public ActionResult EditRegisteredSipComment(RegisteredSipComment sipComment) { if (sipComment.RegisteredSipId != Guid.Empty) { _userManager.SaveComment(sipComment); } var updateResult = new KamailioMessageHandlerResult() { ChangeStatus = KamailioMessageChangeStatus.CodecUpdated, ChangedObjectId = sipComment.RegisteredSipId }; _guiHubUpdater.Update(updateResult); _statusHubUpdater.Update(updateResult); return(null); }