public CreateHyperlinkResponse CreateHyperlink(CreateHyperlinkRequest request)
        {
            var response = new CreateHyperlinkResponse();

            try
            {
                Guard.ArgNotNull(request, "request");
                var hyperLink = new Hyperlink
                                    {
                                        Description = request.Description,
                                        LastModified = request.LastModified,
                                        Snippet_Id = request.SnippetId,
                                        Uri = request.Uri
                                    };
                _unitOfWork.HyperLinkRepository.Insert(hyperLink);
                _unitOfWork.Save();

                response.Success = true;
                response.HyperlinkId = hyperLink.Id;
            }
            catch (Exception ex)
            {
                response.Success = false;
                response.FailureInformation = ex.Message;
                Logger.LogError("CreateHyperlink Method Failed", ex);
            }
            return response;
        }
        public UpdateHyperlinkResponse UpdateHyperlink(UpdateHyperlinkRequest request)
        {
            var response = new UpdateHyperlinkResponse();
            try
            {
                Guard.ArgNotNull(request, "request");

                var hyperlink = new Hyperlink
                                    {
                                        Id = request.HyperlinkId,
                                        Description = request.Description,
                                        Uri = request.Uri,
                                        LastModified = request.LastModified
                                    };
                _unitOfWork.HyperLinkRepository.Update(hyperlink);
                _unitOfWork.Save();

                response.Success = true;
            }
            catch (Exception ex)
            {
                response.Success = false;
                response.FailureInformation = ex.Message;
                Logger.LogError("UpdateHyperlink Method Failed", ex);
            }
            return response;
        }
 /// <summary>
 /// Create a new Hyperlink object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="uri">Initial value of the Uri property.</param>
 /// <param name="lastModified">Initial value of the LastModified property.</param>
 /// <param name="snippet_Id">Initial value of the Snippet_Id property.</param>
 public static Hyperlink CreateHyperlink(global::System.Int32 id, global::System.String uri, global::System.DateTime lastModified, global::System.Int32 snippet_Id)
 {
     Hyperlink hyperlink = new Hyperlink();
     hyperlink.Id = id;
     hyperlink.Uri = uri;
     hyperlink.LastModified = lastModified;
     hyperlink.Snippet_Id = snippet_Id;
     return hyperlink;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Hyperlinks EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToHyperlinks(Hyperlink hyperlink)
 {
     base.AddObject("Hyperlinks", hyperlink);
 }