Update using entity framework 6 code example
Example: how to update record using entity framework in c#
public void UpdateCustomer(Customer custDTO)
{
CustomerEntities ce = new CustomerEntities();
Customer cust = ce.Customers.Find(custDTO.Id);
if (cust != null)
{
DbEntityEntry<Customer> ee = ctx.Entry(cust);