model change
This commit is contained in:
parent
b7692669d6
commit
75948d0730
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -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; }
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue