model change

This commit is contained in:
Lucas Theze 2021-03-25 19:56:59 +00:00
parent b7692669d6
commit 75948d0730
2 changed files with 3 additions and 4 deletions

View File

@ -47,7 +47,7 @@ namespace BackEndAaaapero.Controllers
_context.customers.Add(customer);
await _context.SaveChangesAsync();
return CreatedAtAction("GetCustomer", new { id = customer.Id }, customer);
return CreatedAtAction("GetCustomer", new { id = customer.customer_id }, customer);
}
}
}

View File

@ -5,9 +5,8 @@ namespace Models
public class Customers
{
[Key]
public int Id { get; set; }
public string First_name { get; set; }
public string Last_name { get; set; }
public int customer_id { get; set; }
public string customer_name { get; set; }
}
}