public bool Save_New_Book(Book_Tab_Model obj) { string sql = "INSERT INTO [dbo].Books VALUES ('"+obj.BName+"', '"+obj.Authors+"', '"+obj.CID+"', '"+obj.Info+"', '"+obj.PID+"', '"+obj.Total_Copies+"', '"+obj.Total_Copies+"')"; SqlCommand cmd = sqlconnection(sql); cmd.ExecuteNonQuery(); return true; }
public bool Save_New_Book(Book_Tab_Model obj) { string sql = "INSERT INTO [dbo].Books VALUES ('" + obj.BName + "', '" + obj.Authors + "', '" + obj.CID + "', '" + obj.Info + "', '" + obj.PID + "', '" + obj.Total_Copies + "', '" + obj.Total_Copies + "')"; SqlCommand cmd = sqlconnection(sql); cmd.ExecuteNonQuery(); return(true); }