예제 #1
0
 public static string InsertResource(Resource resource)
 {
     resource.Key = CreateUniqueId();
     Resources.Add(resource);
     return(resource.Key);
 }
예제 #2
0
        public static void UpdateResource(Resource resource)
        {
            Resource item = Resources.FirstOrDefault(c => c.Key.Equals(resource.Key));

            item.Name = resource.Name;
        }