public int AddPostType(string postTypeName) { var datacontext = new DataClassesDataContext(); var pt = new PostType(); pt.PostTypeName = postTypeName; datacontext.PostType.InsertOnSubmit(pt); datacontext.SubmitChanges(); return(pt.PostTypeID); }
partial void DeletePostType(PostType instance);
partial void UpdatePostType(PostType instance);
partial void InsertPostType(PostType instance);