public int SaveProfile(Models.Profile profile) { if (profile.InternalId == 0) { return(database.Insert(profile)); } else { return(database.Update(profile)); } }
public void UpdateProfile(Models.Profile profile) { database.Update(profile); }