public int Save(SubObjectiveModel model) { SqlObject.CommandText = StoredProcedures.SubObjectives.SaveSubObjective; int IsActive = model.IsActive.Equals("true") ? 1 : 0; SqlObject.Parameters = new object[] { model.SubObjectivesID, model.ObjectivesID, model.SubObjectiveName, model.SubObjectiveDescription, IsActive }; return(_repository.Save()); }
public int SaveSubObjective(SubObjectiveModel model) { return(_coreModel.Save(model)); }