public int Insert(Core.Domain.User.Spartan_User_Quicklink entity, Core.Domain.User.GlobalData UserInformation, Core.Domain.Data.DataLayerFieldsBitacora DataReference) { entity.Quicklink = list.Last().Quicklink++; list.Add(entity); return(entity.Quicklink); }
public int Update(Core.Domain.User.Spartan_User_Quicklink entity, Core.Domain.User.GlobalData UserInformation, Core.Domain.Data.DataLayerFieldsBitacora DataReference) { var user = list.SingleOrDefault(v => v.Quicklink == entity.Quicklink); list.Remove(user); list.Add(entity); return(list.Count); }