public void AddUpdateLink(DashboardLinkInfo objInfo)
 {
     try
     {
         DashboardLinkProvider objProv = new DashboardLinkProvider();
         objProv.AddUpdateLink(objInfo);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public DashboardLinkInfo GetLinkByID(int LinkID)
 {
     try
     {
         DashboardLinkProvider objProv = new DashboardLinkProvider();
         DashboardLinkInfo     objInfo = objProv.GetLinkByID(LinkID);
         return(objInfo);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 internal void AddUpdateLink(DashboardLinkInfo objInfo)
 {
     try
     {
         List <KeyValuePair <string, object> > param = new List <KeyValuePair <string, object> >();
         param.Add(new KeyValuePair <string, object>("@LinkID", objInfo.LinkID));
         param.Add(new KeyValuePair <string, object>("@LinkTitle", objInfo.LinkTitle));
         param.Add(new KeyValuePair <string, object>("@PageID", objInfo.PageID));
         param.Add(new KeyValuePair <string, object>("@IsParent", objInfo.IsParent));
         param.Add(new KeyValuePair <string, object>("@ParentLinkID", objInfo.ParentLinkID));
         param.Add(new KeyValuePair <string, object>("@IsActive", objInfo.IsActive));
         param.Add(new KeyValuePair <string, object>("@PortalID", objInfo.PortalID));
         param.Add(new KeyValuePair <string, object>("@UserModuleID", objInfo.UserModuleID));
         param.Add(new KeyValuePair <string, object>("@CultureCode", objInfo.CultureCode));
         SQLHandler sagesql = new SQLHandler();
         sagesql.ExecuteNonQuery("[dbo].[usp_DashboardLink_AddUpdate]", param);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }