示例#1
0
        public int Create(HtmlTypes htmlTypes)
        {
            using (var con = new SqlConnection(SQLHelper.ConnectionString)) {
                var cmd = con.CreateCommand();
                cmd.CommandType = System.Data.CommandType.StoredProcedure;
                cmd.CommandText = "HtmlTypes_Create";

                con.Open();
                cmd.Parameters.AddWithValue("@Name", htmlTypes.Name);
                return((int)cmd.ExecuteScalar());
            }
        }
示例#2
0
 public int Update(HtmlTypes htmlTypes)
 {
     return(_repo.Update(htmlTypes));
 }
示例#3
0
 public int Create(HtmlTypes htmlTypes)
 {
     return(_repo.Create(htmlTypes));
 }