public ITestActionResult GetOrders(int key)
        {
            var customer = UriParseExtenstionDbContext.GetCustomers().FirstOrDefault(c => c.Id == key);

            if (customer == null)
            {
                return(NotFound());
            }

            return(Ok(customer.Orders));
        }
        public ITestActionResult GetVipProperty(int key)
        {
            var customer = UriParseExtenstionDbContext.GetCustomers().FirstOrDefault(c => c.Id == key);

            if (customer == null)
            {
                return(NotFound());
            }

            VipCustomer vipCusomter = customer as VipCustomer;

            if (vipCusomter == null)
            {
                return(NotFound());
            }

            return(Ok(vipCusomter.VipProperty));
        }
        public ITestActionResult GetCustomerByGender(Gender gender)
        {
            var customers = UriParseExtenstionDbContext.GetCustomers().Where(c => c.Gender == gender);

            return(Ok(customers));
        }
 public ITestActionResult Get(int key)
 {
     return(Ok(UriParseExtenstionDbContext.GetCustomers().FirstOrDefault(c => c.Id == key)));
 }
 public ITestActionResult Get()
 {
     return(Ok(UriParseExtenstionDbContext.GetCustomers()));
 }