public static bool Create(SetPost p) { string sql = @"INSERT INTO [dbo].[Articles] ([Title], [Content], [Photo],[Category], [ByUser]) VALUES (@p1, @p2, @p3, @p4, @p5)"; return(DB.Action(sql, p.Title, p.Content, p.Photo, AccountDAO.Id, p.Category)); }