Ejemplo n.º 1
0
 public int AddUpdateGroupItem(GroupItemInfo obj)
 {
     try
     {
         List <KeyValuePair <string, object> > param = new List <KeyValuePair <string, object> >();
         param.Add(new KeyValuePair <string, object>("@ItemID", obj.ItemID));
         param.Add(new KeyValuePair <string, object>("@IsIngroup", obj.IsInGroup));
         param.Add(new KeyValuePair <string, object>("@GroupID", obj.GroupID));
         param.Add(new KeyValuePair <string, object>("@ItemOrder", obj.ItemOrder));
         param.Add(new KeyValuePair <string, object>("@PageID", obj.PageID));
         param.Add(new KeyValuePair <string, object>("@AddedBy", obj.AddedBy));
         param.Add(new KeyValuePair <string, object>("@UpdatedBy", obj.UpdatedBy));
         param.Add(new KeyValuePair <string, object>("@PortalID", obj.PortalID));
         param.Add(new KeyValuePair <string, object>("@UserModuleID", obj.UserModuleID));
         param.Add(new KeyValuePair <string, object>("@Culture", obj.Culture));
         SQLHandler sagesql = new SQLHandler();
         return(sagesql.ExecuteNonQuery("[dbo].[usp_GroupItem_AddUpdate]", param, "@newItemID"));
     }
     catch
     {
         throw;
     }
 }
Ejemplo n.º 2
0
        public int AddUpdateGroupItem(GroupItemInfo obj)
        {
            DashboardDataProvider objDataProvider = new DashboardDataProvider();

            return(objDataProvider.AddUpdateGroupItem(obj));
        }