public override PagedData ProcessRequest(HttpContext context, CookDBDataContext db) { if (context.Request.Params.Count == 0) return new PagedData("Can't call AddServiceID.ashx without parameters"); if (context.Request.Params.Get("name") == null) return new PagedData("Name is null"); ServiceID serviceID = new ServiceID(); serviceID.name = context.Request.Params.Get("name"); db.ServiceIDs.InsertOnSubmit(serviceID); db.SubmitChanges(); return new PagedData(""); }
partial void DeleteServiceID(ServiceID instance);
partial void UpdateServiceID(ServiceID instance);
partial void InsertServiceID(ServiceID instance);