public void AddLink(int titleId, string linkName, string url)
 {
     var titleRecord = _titleRepository.Get(o => o.Id == titleId);
     LinkRecord record = new LinkRecord
     {
         Name = linkName,
         Url = url
     };
     titleRecord.LinkRecords.Add(record);
     _linkRepository.Create(record);
     _titleRepository.Update(titleRecord);
 }
 public void EditLink(LinkRecord record)
 {
     _linkRepository.Update(record);
 }