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); }
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); }