Update() public method

public Update ( ) : void
return void
Esempio n. 1
0
        public void Update()
        {
            Console.Clear();
            Console.WriteLine("Enter id of record you want to change:");
            var id = Int32.Parse(Console.ReadLine());

            var entity = controller.Find(id);

            controller.Update(entity);
        }
Esempio n. 2
0
        static void UpdateActor()
        {
            long id = GetId();

            if (id < 0)
            {
                return;
            }

            Actor actor = GetActor();

            if (ActorController.Update((int)id, actor))
            {
                Console.WriteLine("UPDATE");
            }
            else
            {
                Console.WriteLine("NO RECORD");
            }
        }