# Vidly Customers API returns customers with id=0

**URL:** <https://forum.codewithmosh.com/t/vidly-customers-api-returns-customers-with-id-0/4652>\
**Category:** ASP.NET MVC\
**Created:** [May 4, 2021, 4:36pm UTC](https://forum.codewithmosh.com/t/vidly-customers-api-returns-customers-with-id-0/4652 "2021-05-04T16:36:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aleksandar](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@Aleksandar](https://forum.codewithmosh.com/u/Aleksandar)\
**Post date:** [May 4, 2021, 4:36pm UTC](https://forum.codewithmosh.com/t/vidly-customers-api-returns-customers-with-id-0/4652/1 "2021-05-04T16:36:06Z")

</div>

Hello, as the title said, my API for customers for Vidly project returns customers with id=0

 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/4/40a647c5d961c8b6b86ded3666e723c60c0fc25b.png)

All other data is correct, why is just id 0?

---

<div class="post-metadata">

**Author:** ![h.chadli](https://avatars.discourse-cdn.com/v4/letter/h/b3f665/32.png) [@h.chadli](https://forum.codewithmosh.com/u/h.chadli)\
**Post date:** [September 15, 2021, 3:13am UTC](https://forum.codewithmosh.com/t/vidly-customers-api-returns-customers-with-id-0/4652/2 "2021-09-15T03:13:29Z")

</div>

Hi,  
Because you’re applying the ignore option on both ways(AutoMapper), put only one way, I mean only when the user wants to update a customer or movie properties.  
Hope this can solve your problem 🙂  
CH
