Example #1
0
 partial void DeleteCustomer(Customer instance);
Example #2
0
 partial void InsertCustomer(Customer instance);
Example #3
0
 partial void UpdateCustomer(Customer instance);
Example #4
0
 public void GetCustomer(int customerID = 0, string email = "")
 {
     try {
         Customer cust = new Customer { customerID = customerID, email = email };
         Response.ContentType = "application/json";
         Response.Write(JsonConvert.SerializeObject(cust.Get()));
         Response.End();
     } catch (Exception e) {
         Response.StatusCode = (int)System.Net.HttpStatusCode.InternalServerError;
         Response.StatusDescription = e.Message;
         Response.ContentType = "application/json";
         Response.Write(JsonConvert.SerializeObject(e.Message, Formatting.Indented));
         Response.End();
     }
 }