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 GetStoreint storeId, bool includeCustomers false CreateCustomerCustomer 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 testcountrycode matches the store's CountryCode the header's name is saved in CountryCodeHeaderName 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
