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()); } }
public int Update(HtmlTypes htmlTypes) { return(_repo.Update(htmlTypes)); }
public int Create(HtmlTypes htmlTypes) { return(_repo.Create(htmlTypes)); }