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

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

            return(Ok(customer.Orders));
        }
        public IHttpActionResult 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 IHttpActionResult GetCustomerByGender(Gender gender)
        {
            var customers = UriParseExtenstionDbContext.GetCustomers().Where(c => c.Gender == gender);

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