public bool Create(ProfileAI profileAi) { if (FindByCode(profileAi.Code) != null) { return(false); } profileAi.IdProfileAi = GenerateId(); profileAi.Code = GenerateCode(); return(pm.Persist <ProfileAI>(profileAi)); }
public bool Update(ProfileAI profileAi) { return(pm.Merge <ProfileAI>(profileAi)); }