public bool Upsert(T record) { if (record is IDocumentDTO dto) { return(UpsertDTO(dto)); } else { var ok = _repo.Upsert(record); ExecuteAfterSave(record, false); return(ok); } }
public bool Upsert(T record) { if (record is IDocumentDTO dto) { return(UpsertDTO(dto)); } else { var ok = _repo.Upsert(record); ExecuteAfterSave(record, false); return(ok); } }