The edit method does not edit the pre-existing data but it creates a new data entry with NULL - C#