public override PagedData ProcessRequest(HttpContext context, CookDBDataContext db) { if (context.Request.Params.Count == 0) return new PagedData("Can't call AddDeliveryMethod.ashx without parameters"); if (context.Request.Params.Get("method") == null) return new PagedData("Method is null"); DeliveryMethod method = new DeliveryMethod(); method.method = context.Request.Params.Get("method"); db.DeliveryMethods.InsertOnSubmit(method); db.SubmitChanges(); return new PagedData(""); }
partial void DeleteDeliveryMethod(DeliveryMethod instance);
partial void UpdateDeliveryMethod(DeliveryMethod instance);
partial void InsertDeliveryMethod(DeliveryMethod instance);