public override int FeaturesInsert(Features feature) { DBCommands.PopulateParams("@FeatureName", feature.FeatureName); DBCommands.PopulateParams("@MainFeature", feature.MainFeature); DBCommands.PopulateParams("@FeatureDescription", feature.FeatureDescription); int id = -1; Int32.TryParse(DBCommands.ExecuteScalar("p_Feature_Insert"), out id); return(id); }