public override PagedData ProcessRequest(HttpContext context, CookDBDataContext db) { if (context.Request.Params.Count == 0) return new PagedData("Can't call AddStatusType.ashx without parameters"); if (context.Request.Params.Get("type") == null) return new PagedData("Type is null"); StatusType type = new StatusType(); type.type = context.Request.Params.Get("type"); db.StatusTypes.InsertOnSubmit(type); db.SubmitChanges(); return new PagedData(""); }
partial void DeleteStatusType(StatusType instance);
partial void UpdateStatusType(StatusType instance);
partial void InsertStatusType(StatusType instance);