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