Question: Implement an API that gets data from a repository and saves data back to the same repository. The API should contain three methods: GetStores (

Implement an API that gets data from a repository and saves data back to the same repository. The API should contain three methods: GetStores()0 GetStore(int storeId, bool includeCustomers = false)0 CreateCustomer(Customer customer) D Your task is to implement the three methods listed above. You do not need to implement IRepository D . GetStore method should verify whether the user has permission to access a store by checking whether the request's header x -test-country-code 0 matches the store's CountryCode (the header's name is saved in CountryCodeHeaderName 0 variable). Please do not forget to use it while you filter data from IRepository a ! Each of these methods should retum a different HITP status coder Please scroll to the right in order to see the full table =

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!