コード例 #1
0
        public int Insert(Spartane.Core.Domain.Spartan_Object.Spartan_Object entity, GlobalData UserInformation, Core.Domain.Data.DataLayerFieldsBitacora DataReference)
        {
            entity.Object_Id = list.Last().Object_Id++;
            list.Add(entity);

            return(entity.Object_Id);
        }
コード例 #2
0
        public int Update(Spartane.Core.Domain.Spartan_Object.Spartan_Object entity, GlobalData UserInformation, Core.Domain.Data.DataLayerFieldsBitacora DataReference)
        {
            var user = list.SingleOrDefault(v => v.Object_Id == entity.Object_Id);

            list.Remove(user);
            list.Add(entity);

            return(list.Count);
        }