public int InsertUpdateContent(ContentsDTO content) { return(DABase.NewContext().AddStoredProcedure("usp_InsertUpdateContent") .AddParameter("Id", content.ID, DbType.Int32) .AddParameter("HTMLContent", content.HTMLContent, DbType.String) .AddParameter("Description", content.Description) .AddParameter("CanEdit", content.CanEdit, DbType.Boolean) .AddParameter("Seq", content.Seq, DbType.Int32) .ExecuteNonquery()); }
public bool InsertUpdateContents(ContentsDTO content) { return(contentDL.InsertUpdateContent(content) > 0); }