public object Get(Customer request)
        {
            if (request.Id != default(long))
                return Db.GetById<Customer>(request.Id);

            return Db.Select<Customer>();
        }
        public object Post(Customer customer)
        {
            Db.Save(customer);

            var pathToNewResource = base.Request.AbsoluteUri.CombineWith(customer.Id.ToString());
            return HttpResult.Status201Created(customer, pathToNewResource);
        }
 public void Delete(Customer request)
 {
     Db.DeleteById<Customer>(request.Id);
 }
 public Customer Put(Customer customer)
 {
     Db.Save(customer);
     return customer;
 }