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